我正在尝试将SRILM工具安装到我的MacOSX,但似乎libiconv文件丢失或无法正确读取,因为它会引发错误并且该工具的安装未完成
我试图以多种方式安装libiconv,并尝试将libiconv文件链接到common / makefile.machine.macosx中,但仍然没有结果。 我脑子里没有选择应该怎么做
错误如下
Undefined symbols for architecture x86_64:
"_libiconv", referenced from:
File::fgetsUTF8(char*, int) in libmisc.a(File.o)
"_libiconv_close", referenced from:
File::~File() in libmisc.a(File.o)
File::reopen(char const*, char const*) in libmisc.a(File.o)
File::reopen(char const*) in libmisc.a(File.o)
File::reopen(char const*, unsigned long, int) in libmisc.a(File.o)
File::reopen(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, int) in libmisc.a(File.o)
"_libiconv_open", referenced from:
File::fgetsUTF8(char*, int) in libmisc.a(File.o)
ld: symbol(short) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -void to see invocation)
test -f ../bin/macosx/ngram
make[2]: *** [../bin/macosx/ngram] Error 1
make[1]: *** [release-programs] Error 1
make: *** [World] Error 2