redpony / cdec

Decoder, aligner, and model optimizer for statistical machine translation and other structured prediction models based on (mostly) context-free formalisms
http://cdec-decoder.org/
Apache License 2.0
183 stars 77 forks source link

python/setup.py uses -L/usr/lib64 #37

Open kpu opened 10 years ago

kpu commented 10 years ago

I have newer version of boost installed in my home directory and have set LIBRARY_PATH and LD_LIBRARY_PATH. However, python/setup.py calls g++ to link like this:

g++ -pthread -shared -O3 build/temp.linux-x86_64-2.6/cdec/_cdec.o -L../decoder -L../utils -L../mteval -L../training/utils -L../klm/lm -L../klm/util -L../klm/util/double-conversion -L../klm/search -L/usr/lib64 -lcdec -lutils -lmteval -ltraining_utils -lklm -lklm_util -lklm_util_double -lksearch -ldl -lrt -lboost_serialization-mt -lboost_system-mt -lboost_filesystem-mt -lz -lbz2 -lpython2.6 -o /juicer/u80/u/heafield/cdec/python/cdec/_cdec.so

The -L/usr/lib64 argument takes precedence over environment variables, causing g++ to link to the stale version :-(. Can you please stop it from passing -L/usr/lib64 at all?

redpony commented 10 years ago

Thanks for the heads up. I'll have someone look into this.