2017-05-09 60 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庫。