编译 nginx-ct 总是失败怎么破

2016-01-23 19:43:43 +08:00
 sky170
make[1]: *** [objs/addon/nginx-ct-master/ngx_http_ssl_ct_module.o] Error 1

每次都是跪在这个模块上= =
4137 次点击
所在节点    NGINX
31 条回复
sky170
2016-01-23 22:36:30 +08:00
@kn007 额确实逗了,本想着一起编译完事的= =
just1
2016-01-23 22:39:08 +08:00
yum install openssl-devel
just1
2016-01-23 22:39:54 +08:00
@just1 没看到 ubuntu 。
branchzero
2016-01-24 00:50:49 +08:00
之前自己编译的时候也碰到类似的问题, yum install openssl-devel 无用的说,源里的版本太旧了,要去官方自己下包编译。重要的几步找了下记录还在,供参考。
402 wget http://www.openssl.org/source/openssl-1.0.2e.tar.gz
403 ./config --prefix=/usr --openssldir=/usr/local/openssl shared
404 tar zxf openssl-1.0.2e.tar.gz
405 cd openssl-1.0.2e
406 ./config --prefix=/usr --openssldir=/usr/local/openssl shared
407 make
408 make test
409 make install
410 cd ..
411 cd nginx-1.9.9
412 ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-threads --with-stream --with-stream_ssl_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-http_v2_module --add-module=../nginx-ct-master --with-openssl=/root/openssl-1.0.2e --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic'
413 make
414 make install
branchzero
2016-01-24 00:57:41 +08:00
补充一句,问题关键应该是 nginx-ct 支持的 openssl 版本问题,记得之前自己找了很久解法,看到 GitHub 的 issue 上作者的回答有写最低支持的 openssl 版本,于是找了最新的 openssl 编译了下解决了。
hiroya
2016-01-24 01:13:13 +08:00
最新的 openssl1.0.2e 很是无语,编译好后找到的目录 nginx 根本不认……
sky170
2016-01-24 01:38:14 +08:00
@hiroya 我更新了 openssl 好像不会= =,也是 1.0.2e 版本
sky170
2016-01-24 01:39:12 +08:00
@branchzero 我现在 openssl 是 1.0.2e ,然后 nginx 编译了 libressl ,但是 libressl 又不和 nginx-ct 兼容,所以失败了= =
shyling
2016-01-24 08:52:58 +08:00
@hiroya 1.0.2e 很正常。 1.1.0 还用不了
hiroya
2016-01-24 16:15:18 +08:00
@shyling arch 和 centos 不能相提并论…
shyling
2016-01-24 18:30:26 +08:00
@hiroya centos,arch 都试过了啊

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/252896

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX