oh, add this to your file ~/.profile export LIBRARY_PATH=$LIBRARY_PATH:/opt/local/lib
On 5 May 2014 17:13, Hieu Hoang <[email protected]> wrote: > not sure. I use clang. What's the exact command you use to compile? This > is my command: > ./bjam --with-boost=/Users/hieu/workspace/boost/boost_1_54_0 > --with-srilm=/Users/hieu/workspace/srilm > --with-xmlrpc-c=/Users/hieu/workspace/xmlrpc-c-1.25.26 > --with-irstlm=/Users/hieu/workspace/irstlm -j4 toolset=clang link=static > > DO you have the iconv library in 1 of your system path? This is what i get: > $ll /opt/local/lib/libiconv.* > -rw-r--r-- 1 root admin 1048024 28 Oct 2013 > /opt/local/lib/libiconv.2.dylib > -rw-r--r-- 1 root admin 1096256 28 Oct 2013 /opt/local/lib/libiconv.a > lrwxr-xr-x 1 root admin 16 28 Oct 2013 > /opt/local/lib/libiconv.dylib -> libiconv.2.dylib > > > > On 5 May 2014 16:56, Catherine Gasnier <[email protected]> wrote: > >> Thank you for your help, >> >> I did a "sudo port upgrade libiconv" but nothing changed. I also tried >> with GNU gcc instead of clang, but I have the same problem. Any other idea? >> >> Catherine Gasnier >> Rue du pont 22 >> 1003 Lausanne >> Switzerland >> >> +41 78 914 38 48 >> >> >> On 5 May 2014 12:13, Hieu Hoang <[email protected]> wrote: >> >>> i remember having this problem on my mac. >>> >>> i think i solved it but installing macports and installing libiconv >>> using macports. However, it was a while ago so i can't remember >>> >>> >>> On 02/05/2014 14:49, Catherine Gasnier wrote: >>> >>> Dear Moses developer, >>> >>> I ran into a problem similar to the one reported here: >>> https://www.mail-archive.com/moses-support%40mit.edu/msg08431.html, >>> i.e. I get this error message >>> >>> > Undefined symbols for architecture x86_64: >>> > "_iconv_open", referenced from: >>> > File::fgetsUTF8(char*, int) in libmisc.a(File.o) >>> > "_iconv", referenced from: >>> > File::fgetsUTF8(char*, int) in libmisc.a(File.o) >>> > "_iconv_close", referenced from: >>> > File::~File() in libmisc.a(File.o) >>> > ld: symbol(s) not found for architecture x86_64 >>> > collect2: error: ld returned 1 exit status >>> >>> after running ./bjam -a --with-macports >>> --with-srilm=/Users/catherinegasnier/EPFL/NLP/srilm >>> >>> >>> >>> I pulled moses with git from >>> https://github.com/moses-smt/mosesdecoder.git. Unless I am mistaken, the >>> thread about this error did not provide any solution. Did you finally solve >>> this problem? >>> >>> I have attached my build.log >>> >>> >>> Catherine Gasnier >>> PhD Student in Computer Science >>> EPFL, INF326 >>> Station 14 >>> 1015 Lausanne >>> +41 21 693 42 43 >>> +41 78 914 38 48 >>> >>> >>> _______________________________________________ >>> Moses-support mailing >>> [email protected]http://mailman.mit.edu/mailman/listinfo/moses-support >>> >>> >>> >>> _______________________________________________ >>> Moses-support mailing list >>> [email protected] >>> http://mailman.mit.edu/mailman/listinfo/moses-support >>> >>> >> > > > -- > Hieu Hoang > Research Associate > University of Edinburgh > http://www.hoang.co.uk/hieu > > -- Hieu Hoang Research Associate University of Edinburgh http://www.hoang.co.uk/hieu
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
