Click here to register.

Frequently Asked Questions

Flat
How to compile Julius/Julian from source
User: kmaclean
Date: 1/1/2010 10:25 am
Views: 2910
Rating: 8    Rate [
]

Step 1 - Download Source Code

Create a new directory in your home directory called 'bin', it should have the following path (replace yourusername with the username you are using on your system):

  • /home/yourusename/bin 

click the following link:

and save it to your new bin directory.

Extract the file using:

  • Nautilus (right click the tar/gzipped file and click extract here)
  • use tar from the command line:
    • tar -xvzf julius-3.5.2.tar.gz

this should create a Julius-3.5.2 directory in your bin folder.

Step 2 - Compile & Install Julius

After unpacking the sources, open a command line terminal and go to the /hom/yourusername/bin/julius-3.5.2 directory where you downloaded your files. 

configure 

The default location for binaries is "/usr/local" which will put the tools in "/usr/local/bin".  You need to change this default location using the "./configure" script to specify where you want the binaries installed:

To compile Julius: 

$./configure --prefix=/home/yourusername/bin/julius-3.5.2

To compile Julian:

$./configure --prefix=/home/yourusername/bin/julius-3.5.2  --enable-julian

This directs the make command to put all your binaries in the following folder:

  •  /home/yourusername/bin/julius-3.5.2/bin

make 

To build the libraries and binaries, execute the following:

$make all

Running the following command will install them: 

$make install

Step 3 Update your User Path

To update your user path, you need to add the '/home/yourusername/bin/julius-3.5.2/bin' path to your path variable.  To do this, edit your '.bash_profile' file in your home directory (in Fedora you need to show 'hidden files' in Nautilus - so you can display file names with a period in front of them) and add a colon (":") and this path to the end of the PATH variable (leaving the rest of it unchanged):

# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/usr/yourusername/julius/julius-3.5.2-linuxbin/bin

Log out and log back in to make your path change effective.

PreviousNextAdd