skipfis安装

来源:互联网 发布:汤姆索亚历险记 知乎 编辑:程序博客网 时间:2024/05/01 07:54
安装skipfish的时候,文档中就简单的说了一句“解压缩包之后,在编译前先安装 libidn or libpcre3,然后使用make”
(To compile it, simply unpack the archive and try make. Chances are, you will need to install libidn or libpcre3 first.)
可是安装后依然报错。
如下:
src/http_client.c:2461: error: ‘struct conn_entry’ has no member named ‘next’
src/http_client.c:2465: error: ‘struct conn_entry’ has no member named ‘q’
src/http_client.c: In function ‘http_req_list’:
src/http_client.c:2777: error: ‘struct conn_entry’ has no member named ‘q’
src/http_client.c:2778: error: ‘struct conn_entry’ has no member named ‘q’
src/http_client.c:2791: error: ‘struct conn_entry’ has no member named ‘next’
In file included from src/database.c:33:
src/http_client.h:26:25: error: openssl/ssl.h: No such file or directory
In file included from src/database.c:33:
src/http_client.h:226: error: expected specifier-qualifier-list before ‘SSL_CTX’
In file included from src/crawler.c:30:
src/http_client.h:26:25: error: openssl/ssl.h: No such file or directory
In file included from src/crawler.c:30:
src/http_client.h:226: error: expected specifier-qualifier-list before ‘SSL_CTX’
In file included from src/analysis.c:28:
src/http_client.h:26:25: error: openssl/ssl.h: No such file or directory
In file included from src/analysis.c:28:
src/http_client.h:226: error: expected specifier-qualifier-list before ‘SSL_CTX’
src/analysis.c: In function ‘maybe_xsrf’:
src/analysis.c:410: warning: implicit declaration of function ‘time’
In file included from src/report.c:33:
src/http_client.h:26:25: error: openssl/ssl.h: No such file or directory
In file included from src/report.c:33:
src/http_client.h:226: error: expected specifier-qualifier-list before ‘SSL_CTX’
In file included from src/crawler.h:26,
                 from src/checks.c:27:
src/http_client.h:26:25: error: openssl/ssl.h: No such file or directory
In file included from src/crawler.h:26,
                 from src/checks.c:27:
src/http_client.h:226: error: expected specifier-qualifier-list before ‘SSL_CTX’
In file included from src/database.h:29,
                 from src/signatures.c:35:
src/http_client.h:26:25: error: openssl/ssl.h: No such file or directory
In file included from src/database.h:29,
                 from src/signatures.c:35:
src/http_client.h:226: error: expected specifier-qualifier-list before ‘SSL_CTX’
In file included from src/auth.c:30:
src/http_client.h:26:25: error: openssl/ssl.h: No such file or directory
In file included from src/auth.c:30:
src/http_client.h:226: error: expected specifier-qualifier-list before ‘SSL_CTX’

解决1:ubuntu下的方案http://tosbourn.com/2010/05/security/skipfish-no-such-file-or-directory/
使用sudo apt-get install libssl-dev build-essential zlibc zlib-bin libidn11-dev libidn11安装相应的包
由于安装环境是centos的,没有成功

解决2:centos下的方案http://blog.redbranch.net/2012/09/10/skipfish-on-centos/
使用yum install pcre-devel openssl-devel libidn-devel libidn2-devel
经测试可以完成skipfish安装
原创粉丝点击