I use OSX Yosemite, but have used various versions of OSX previously.
Some things to note:
1. The compile.sh script doesn't work on OSX. You need to use bjam
directly. I've added the notes on how to use it back onto the website.
I've also added a section on compiling on OSX.
http://www.statmt.org/moses/?n=Development.GetStarted
2. Don't install any other gcc compiler, especially from Macports
etc. Only use the default compiler that comes with OSX/XCode. If you
have installed gcc from Macports you must delete the ENTIRE Macport
directory (/opt/local). Failure to do so causes confusion in the libraries
3. I personally compile Boost myself rather than rely on Macport. You
can install it via Macport, but you need to understand the environment
variables that affect compilation.
https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html
On 04/11/2015 17:21, Nicolas Pécheux wrote:
Dear Hieu,
Many thanks for your answer.
My compiler is the one shipped with my mac:
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2336.11.00)
i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2336.11.00)
what happens when you delete 'typename' in
TargetPhraseCollectionCache.cpp line 28?
If I do this, then this file do compile (cf. build_target_phrase.log.gz)
However I still get a typename error in:
moses/TranslationModel/CompactPT/PhraseDictionaryCompact.cpp:47:
error: using ‘typename’ outside of template
But if I also remove that typename the build still does not works (cf.
build_phrase_dictionary.log.gz)
I also installed an upgraded gcc version (5.2.0). The builds works (I
have tons of warnings though) but I am not able to run the binaries:
$ ~/moses/bin/extractor
dyld: Library not loaded: libboost_thread.dylib
Referenced from: /Users/pecheux/moses/bin/extractor
Reason: image not found
Trace/BPT trap: 5
I tried to provide the BOOST install path by adding the following line
in my .bash_profile, without success
DYLD_LIBRARY_PATH="~/moses/opt/lib"
I also tried to compile with the --static option (./compile --static),
but the build then fails (cf. build_gcc52_static.log.gz)
If you have any idea what else I should try.
Best regards,
Nicolas
Hieu Hoang
http://www.hoang.co.uk/hieu
On 1 November 2015 at 20:01, Nicolas Pécheux
<[email protected] <mailto:[email protected]>> wrote:
Dear moses-support,
I am experimenting trouble trying to install Moses on my own
laptop. I have successfully installed Moses previously on other
machines.
My configuration is MacOsX 10.7.5 (Lion). I have installed Macports.
I first ran as suggested
make -f contrib/Makefiles/install-dependencies.gmake
and everything seemed to work as expected (I do see the install
in ./opt)
But then
./compile.sh
fails on 83 targets.
Attached is the /build.log.gz. /The recommended command to get
this was
./jam-files/bjam --with-irstlm=./opt --with-boost=./opt
--with-cmph=./opt --with-xmlrpc-c=./opt -j 1
--debug-configuration -d2 |gzip >build.log.gz
but this seems to fail as /boost-build.jam/ is not found. I ran
instead
./bjam --with-irstlm=./opt --with-boost=./opt --with-cmph=./opt
--with-xmlrpc-c=./opt -j 1 --debug-configuration -d2 |gzip
>build.log.gz
Maybe I am doing something wrong. Is there some variable I need
to adjust so the internal BOOST build is found?
Many thanks for your help.
--
Nicolas Pécheux
Univ. Paris XI, LIMSI-CNRS
Bur : 27 - LIMSI Bat. S
[email protected] <mailto:[email protected]>
http://nicolas.pecheux.fr
_______________________________________________
Moses-support mailing list
[email protected] <mailto:[email protected]>
http://mailman.mit.edu/mailman/listinfo/moses-support
--
Nicolas Pécheux
Univ. Paris XI, LIMSI-CNRS
Bur : 27 - LIMSI Bat. S
[email protected]
http://nicolas.pecheux.fr
--
Hieu Hoang
http://www.hoang.co.uk/hieu
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support