note: this is easy to install from the Ubuntu NLP repository:

After which: sudo apt-get install moses moses-doc


DO NOT DO THE STEPS BELOW IF YOU'D RATHER HAVE THE PACKAGE MANAGER DO IT. If you are making code changes, you'll probably need the instructions below, but if you're running the software and not changing it, let the package manager (above) do the work.

the following instructions are for building it yourself:


This page documents JeremyKahn's work in making the Marathon software compile on a fairly fresh install of Ubuntu Hardy Heron [8.04]. YMMV, depending on the operating system, but it should be a handy guide for Linux users trying to get up to speed.

I'm taking a lot from the Workshop on SMT shared task page.

Packages installed (use sudo apt-get install PACKAGE to install on ubuntu; or use aptitude or another package manager):

  • build-essential a metapackage that installs many C and C++ compiling tools (e.g., make and g++)
  • subversion version control client
  • zlib1g-dev development files for compression library (needed for IRST-LM compile)
  • autoconf build tool needed for Moses
  • automake build tool needed for Moses

Note that these packages may already be installed; they are here to attempt to document the dependencies of the programs and libraries below.

Downloading the code:

 svn co https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder moses
 svn co https://irstlm.svn.sourceforge.net/svnroot/irstlm irstlm
 wget http://giza-pp.googlecode.com/files/giza-pp-v1.0.1.tar.gz

Compiling IRST-LM

note libraries needed from package list above

 cd irstlm
 ./install
 cd ..

not very difficult, once dependencies are tracked.

Compiling GIZA++

 tar zxf giza-pp-v1.0.1.tar.gz
 cd giza-pp
 make
 cd ..

Also seems pretty straightforward.

Compiling Moses

note build tools needed from package list above

 cd moses
 ./regenerate-makefiles.sh
 ./configure --with-irstlm=../irstlm
 cd ..

Moses support scripts

 mkdir moses-support
 ln -s `pwd`/giza-pp/GIZA++-v2/GIZA++ moses-support/
 ln -s `pwd`/giza-pp/GIZA++-v2/snt2cooc.out moses-support/
 ln -s `pwd`/giza-pp/mkcls-v2/mkcls moses-support/
 export TARGETDIR=`pwd`/moses-scripts;
 export BINDIR=`pwd`/moses-support
 cd moses/scripts
 make release
 cd ../..

update your .profile or equivalent with the export SCRIPTS_ROOTDIR=... line suggested by the end of the make release command. If you do forget, the path is at the bottom of a README file inside $TARGETDIR/scripts-[0-9]*-[0-9]*

Page last modified on May 14, 2008, at 04:28 PM