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