2012-09-13 134 views
5

我正在嘗試在我剛剛下載的ubuntu最新版本上使用skipfish。我遵循這個鏈接的指令http://digitivity.org/943/how-to-install-google-skipfish-on-ubuntu-linuxskipfish - error in make

當我根據文章運行「nice make」時,我在下面得到了這個錯誤......任何人都可以請幫我指點一下來解決這個問題嗎?提前致謝。

[email protected]:~/Downloads/skipfish-2.09b$ nice make 
cc -L/usr/lib/ssl/engines -L/usr/lib/ -L/usr/lib/ssl/ -L/usr/local/lib/ -L/opt/local/lib src/skipfish.c -o skipfish \ 
     -O3 -Wno-format -Wall -funsigned-char -g -ggdb -I/usr/local/include/ -I/opt/local/include/ -I/usr/include/ -DVERSION=\"2.09b\" src/http_client.c src/database.c src/crawler.c src/analysis.c src/report.c src/checks.c src/signatures.c src/auth.c -lcrypto -lssl -lidn -lz -lpcre 
In file included from src/skipfish.c:47:0: 
src/signatures.h:24:18: fatal error: pcre.h: No such file or directory 
compilation terminated. 
src/http_client.c:40:18: fatal error: idna.h: No such file or directory 
compilation terminated. 
In file included from src/analysis.c:32:0: 
src/signatures.h:24:18: fatal error: pcre.h: No such file or directory 
compilation terminated. 
src/signatures.c:27:18: fatal error: pcre.h: No such file or directory 
compilation terminated. 
make: *** [skipfish] Error 1 

回答

19

您缺少開發庫。運行這個命令:

sudo apt-get install libpcre3-dev libidn11-dev 
+0

非常感謝..我錯過了那一個。再次感謝 –

+4

如何在MacOS X上安裝這些庫? – loretoparisi

+5

在MacOS X上:'brew install pcre'和'brew install libidn'。你需要安裝brew –