2012-02-22 52 views
0

我試圖讓獅身人面像與甲基苯丙胺我一直運行到這個問題,我的系統上,但對工作的原因所在:與甲基苯丙胺在OS X Lion的安裝獅身人面像

Making all in libstemmer_c 
make[1]: Nothing to be done for `all'. 
Making all in src 
/bin/sh svnxrev.sh .. 
make all-am 
g++ -Wall -g -D_FILE_OFFSET_BITS=64 -O3 -DNDEBUG -arch x86_64 -o indexer indexer.o libsphinx.a ../libstemmer_c/libstemmer.a -L/Applications/MAMP/Library/lib -lmysqlclient -lpthread -lz -lodbc -ldl -lz -liconv -lexpat -L/usr/local/lib -lpthread 
Undefined symbols for architecture x86_64: 
    "_iconv_open", referenced from: 
     xmlUnknownEncoding(void*, char const*, XML_Encoding*)in libsphinx.a(sphinx.o) 
    "_iconv", referenced from: 
     xmlUnknownEncoding(void*, char const*, XML_Encoding*)in libsphinx.a(sphinx.o) 
    "_iconv_close", referenced from: 
     xmlUnknownEncoding(void*, char const*, XML_Encoding*)in libsphinx.a(sphinx.o) 
ld: symbol(s) not found for architecture x86_64 
collect2: ld returned 1 exit status 
make[2]: *** [indexer] Error 1 
make[1]: *** [all] Error 2 
make: *** [all-recursive] Error 1 

這是我運行安裝命令獅身人面像:LDFLAGS="-arch x86_64" ./configure --prefix=/usr/local --with-libstemmer --with-mysql=/Applications/MAMP/Library

其他人遇到這個問題?

回答

0

我有同樣的問題,重命名甲基苯丙胺 「的iconv」 解決了這個問題...

gloria:sphinx-2.0.3-release simon$ which iconv 
/Applications/MAMP/Library/bin//iconv 

所以我給它改名:

gloria:sphinx-2.0.3-release simon$ mv /Applications/MAMP/Library/bin//iconv 
/Applications/MAMP/Library/bin//iconv2 

爲了擁有的iconv的一個很好的版本:

gloria:sphinx-2.0.3-release simon$ which iconv 
/opt/local/bin/iconv 

然後重新編譯獅身人面像......它工作。

CFLAGS='-arch x86_64' CCFLAGS='-arch x86_64' CXXFLAGS='-arch x86_64' ./configure 
make -j4 install 

希望幫助