moses-smt / mgiza

A word alignment tool based on famous GIZA++, extended to support multi-threading, resume training and incremental training.
161 stars 60 forks source link

Cannot install, "undefined symbols for architecture" #1

Closed DanielTakeshi closed 9 years ago

DanielTakeshi commented 9 years ago

Sorry if this isn't the correct place to ask, but I noticed that this repository is still active and I didn't see any other information about support.

I asked a question on stackoverflow regarding my issues with installing mgiza.

http://stackoverflow.com/questions/26952361/yet-another-ld-symbols-not-found-for-architecture-x86-64-issue-with-boost

Does anyone have experience with this kind of problem? In particular, is there something I should change in CMakeLists.txt to make installation work?

hieuhoang commented 9 years ago

I had the same problems with cmake and boost and decided to bypass cmake. Please look at the file manual-compile/compile.sh and change it for your own computer.

You should

  1. get the mgiza code from github https://github.com/moses-smt/mgiza
  2. Compile the boost library yourself. The instructions are here http://www.statmt.org/moses/?n=Development.GetStarted
DanielTakeshi commented 9 years ago

I just managed to figure it out. I could use cmake correctly; the key was installing boost correctly. Apparently, just doing

brew install boost

will not work. Best to compile it myself, as you mentioned. I used 1.57 and compiled it and once I did that, cmake, make, and make install all worked.

pgoel92 commented 9 years ago

Hi, I just came across this thread and was finally able to build mgiza after spending a couple of hours looking around. Perhaps this deserves a note in the INSTALL file. Would you like me to do that @hieuhoang?

hieuhoang commented 9 years ago

Be my guest

Sent while bumping into things On 27 Nov 2014 00:32, "Prateek Goel" notifications@github.com wrote:

Hi, I just came across this thread and was finally able to build mgiza after spending a couple of hours looking around. Perhaps this deserves a note in the INSTALL file. Would you like me to do that @hieuhoang https://github.com/hieuhoang?

— Reply to this email directly or view it on GitHub https://github.com/moses-smt/mgiza/issues/1#issuecomment-64730387.

hieuhoang commented 9 years ago

cheers