Moses Support Digest: moses install on 64-bit

[Moses-support] moses install on 64-bit

Hi,
I’m trying to install moses onto a 64-bit linux machine. I have compiled srilm with the MACHINE_TYPE variable set to “i686-m64″. Now, when compiling moses, I get this :

//////////////////Making all in moses/src
make[2]: Entering directory `/data/acp08avk/darwin/moses/moses/src’
make all-am
make[3]: Entering directory `/data/acp08avk/darwin/moses/moses/src’
make[3]: Nothing to be done for `all-am’.
make[3]: Leaving directory `/data/acp08avk/darwin/moses/moses/src’
make[2]: Leaving directory `/data/acp08avk/darwin/moses/moses/src’
Making all in moses-cmd/src
make[2]: Entering directory `/data/acp08avk/darwin/moses/moses-cmd/src’
g++ -g -O2 -L/data/acp08avk/darwin/srilm/lib/i686 -o moses Main.o mbr.o
IOWrapper.o TranslationAnalysis.o -L../../moses/src -lmoses -loolm -ldstruct
-lmisc -lz
/usr/bin/ld: cannot find -loolm
collect2: ld returned 1 exit status
make[2]: *** [moses] Error 1
make[2]: Leaving directory `/data/acp08avk/darwin/moses/moses-cmd/src’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/data/acp08avk/darwin/moses’
//////////////////////

I have searched online and found this post by someone

/////Hi Iain,

I used to have the same problem and I fixed it by modifying LDFLAGS in 4 Makefile files to srilm 64-bit version.

Hope this help,
Nguyen
/////////////////////

I cant seem to understand the advice given above. modify 4 Makefile files? There is only one Makefile inside the moses directory and that has only one instance of LDFLAGS. Could anybody please explain to me what the given advice actually means?

Thanks,
Aditya


Re:[Moses-support] moses install on 64-bit

as far as i remember from my last 64bit install, Moses gets the architecture type from the result of an SRILM script. in the SRILM toolkit, the architecture type is correctly reported UNLESS you are on a 64bit machine. this is to allow you to compile everything on a mixed-arch cluster with one script (and secretly just compiles everything as 32bit). i reported this as a bug, but it turns out it’s a feature in SRILM :) anyway, i edited the ‘configure’ file to comment out this line:
<<<
# MY_ARCH=`${with_srilm}/sbin/machine-type`
>>>
and replaced it with this:
<<<
MY_ARCH="i686-m64"
>>>

and then Moses compiled just fine, with no makefile modifications.

~amittai

NOTICE:This is digested from the Moses-support mailing list, which supports for the moses SMT decoder.

Related posts:

  1. Moses Support Digest:SRILM installation problem
  2. Moses Support Digest: moses installation
  3. Moses Support Digest:Moses compilation problem on fedora 11
  4. Moses Support Digest: cannot find -loolm
  5. Moses Support Digest:Error compiling on Linux
  6. Moses Support Digest: moses-chart error while compiling training scripts
  7. Moses Support Digest:moses for cygwin
  8. Moses Support Digest:problem running mosesserver
  9. Moses Support Digest: Issues with Score data
  10. Moses Support Digest: Moses on the iPhone
This entry was posted in Moses, SMT and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>