Compiling on Ubunti 9.10

14 views
Skip to first unread message

mz4wheeler

unread,
May 17, 2010, 5:27:25 PM5/17/10
to Moses.for.Mere.Mortals
I followed the compilation steps (on Ubuntu 9.10) and I found the
following.

I needed to install libboost-dev (apt-get install libboost-dev)
I needed to install bc (apt-get install bc)
I had to make a slight code change to randlm-v0.11.tar.gz: (some
errors about printf)

After untarring randlm-v0.11.tar.gz: (tar zxvf randlm-v0.11.tar.gz)
cd randlm/src
vi RandLMStruct.h RandLMUtils.h

On each of these .h files, add "#include <cstdio>" at the top, in/
around the other "#include" statements... I then rebuilt the fixed
randlm-v0.11.tar.gz
cd ../..
# Create a new "fixed" version
tar czf randlm-v0.11.tar.gz randlm

I then had to hack the "create-moses-irstlm-randlm-1.27" script to
comment out all the various wget(s) and rm(s) that the script really
shouldn't do since "randlm-v0.11.tar.gz" already existed (albeit my
new "hacked" one)

grep randlm create-moses-irstlm-randlm-1.27 | egrep -n '(wget|rm)'
8: #wget $randlmurl
11: #rm $toolsdir/$randlmpack
16: #wget $randlmurl
20: #wget $randlmurl

After I re-ran "create-moses-irstlm-randlm-1.27", I finally got:

************************ Moses scripts correctly copied.
****************************************** New and modified scripts
and demo files ...
***************** Copy nonbreaking_prefix.pt ...
***************** Copy mert-moses-new-modif.pl ...
***************** Copy corpora_for_training ...
****************************************** Scorer ...
************************ Scorer correctly copied.

!!! Successful end of Moses installation. !!!
Moses base directory located in /opt/moses/moses-irstlm-randlm
root@srv01:/opt/moses/Moses-for-Mere-Mortals/scripts# l


Reply all
Reply to author
Forward
0 new messages