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

library not found for -lrt #18

Closed LeonIdeal closed 3 years ago

LeonIdeal commented 5 years ago

Hi, when I follow the steps cmake . and make It runs with the error

[ 51%] Linking CXX executable ../bin/d4norm ld: library not found for -lrt clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [bin/d4norm] Error 1 make[1]: [src/CMakeFiles/d4norm.dir/all] Error 2 make: *** [all] Error 2

I wonder how to solve this problem, thanks!

hieuhoang commented 3 years ago

apologies, too late for you but maybe useful for others in the future. MacOS doesn't have rt library so it will fail on link on the mac. Just comment mention of the rt lib from the Makefile