2017-05-09 59 views
0

我想在MacOS Sierra上安装一个开源软件(AB3P)。当我发出命令make时,出现此错误:ld: library not found for -lops。发出错误之前发出的make命令是:g++ -g -o make_wordSet make_wordSet.o -L./Library -lops -D_POSIX_C_SOURCE=199506L -lpthread 在MacOS Sierra上编译一个用C++编写的开源软件的问题Sierra

我拥有最新版本的MacOS Sierra和Xcode + Xcode命令行开发人员工具(撰写本文时)。此外gcc安装,命令gcc --version回报:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 
Apple LLVM version 8.1.0 (clang-802.0.42) 
Target: x86_64-apple-darwin16.5.0 
Thread model: posix 
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin 

我不知道如何来解决这个问题,有什么建议?

+0

您发布的行与该项目的makefile中的任何内容都不相似。 – molbdnilo

回答

0

您需要下载this库和编译它,那么这个库的文件夹,并在lib文件夹中的Makefile在编辑Makefile里面指向NCBITextLib-master文件在磁盘上,之后,你可以编译ABP3库。