[Moses-support] compiling on Mac
I have a doubt about moses.
when I try to compile with make on Mac (Snow Leopard or Leopard), it gives me strange libtool errors (see below). It’s only recently been doing this so might be caused by software update. Its a clean install of OSX so there shouldn’t be resource problems. And it compile fine with xcode.
error:
———————————-
make
make all-recursive
Making all in moses/src
make all-am
/bin/sh ../../libtool –tag=CXX –mode=compile g++ -DHAVE_CONFIG_H -I.
-I../.. -W -Wall -ffor-scope -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-DTRACE_ENABLE=1 -g -O2 -MT AlignmentInfo.lo -MD -MP -MF
.deps/AlignmentInfo.Tpo -c -o AlignmentInfo.lo AlignmentInfo.cpp
../../libtool: fork: Resource temporarily unavailable
../../libtool: fork: Resource temporarily unavailable
../../libtool: fork: Resource temporarily unavailable
../../libtool: fork: Resource temporarily unavailable
../../libtool: fork: Resource temporarily unavailable
../../libtool: line 712: *** Warning: inferring the mode of operation is
deprecated.: command not found
../../libtool: line 713: *** Future versions of Libtool will require
-mode=MODE be specified.: command not found
../../libtool: line 745: : warning: cannot infer operation mode without
MODE-ARGS: command not found
Re: [Moses-support] compiling on Mac
Dear Hieu
The only trouble I had compiling on a Mac was I needed to install a recent version of automake. I note the doc [1] says
For OS X versions 10.4 and lower, you need to upgrade aclocal and
automake to at least version 1.9 (1.6 is the default in 10.4) and
set the variables ACLOCAL and AUTOMAKE in ./regenerate-makefiles.sh.
I was running 10.5 or 6 and I had to upgrade [2].
Best wishes
Ivan
[1] Moses Installation and Training Run-Through
http://www.statmt.org/moses_steps.html
[2] Installing Moses and irstlm on Mac OS X and Cygwin
https://www.bangor.ac.uk/~cbs007/mt/getting_started.html
Re: [Moses-support] compiling on Mac
ah, i found the problem & solution. (libtool on mac) != (libtool on linux)
have to install gnu libtool, then rename
libtoolize
in
*regenerate-makefiles.sh*
to
glibtoolize
command line is sooo much fun
Related posts:
- Moses Support Digest: moses-chart error while compiling training scripts
- Moses Support Digest:compiling moses 3 chart
- Moses Support Digest:Error compiling on Linux
- Moses Support Digest:moses for cygwin
- Moses Support Digest: moses install on 64-bit
- Moses Support Digest: The problem with the installation of Moses on Windows XP
- Moses Support Digest:How to run giza++ with a dictionary
- Moses Support Digest:Multi-threaded Moses
- Moses Support Digest:Moses compilation problem on fedora 11
- Moses Support Digest:mt3_chart compilation error