编译安装nginx遇到的问题
2012-12-24 19:46
926 查看
一、源码包获取
[root@Bookmark1 tmp]# wget http://agentzh.org/misc/nginx/ngx_openresty-1.2.1.14.tar.gz
二、安装
[root@Bookmark1 tmp]# tar -zxvf ngx_openresty-1.2.1.14.tar.gz
[root@Bookmark1 tmp]# cd ngx_openresty-1.2.1.14
[root@Bookmark1 ngx_openresty-1.2.1.14]# ./configure --prefix=/usr/local/ngx_openresty --with-luajit --with-http_stub_status_module
make时报错如下:
al/ngx_openresty/luajit/lib -lluajit-5.1 -lm -lpcre -lssl -lcrypto -ldl -lz
objs/src/event/ngx_event_openssl.o: In function `ngx_ssl_ecdh_curve':
ngx_event_openssl.c:(.text+0xace): undefined reference to `EC_KEY_new_by_curve_name'
ngx_event_openssl.c:(.text+0xb4d): undefined reference to `EC_KEY_free'
objs/src/http/ngx_http_request.o: In function `ngx_http_ssl_servername':
ngx_http_request.c:(.text+0xcfe): undefined reference to `SSL_get_servername'
ngx_http_request.c:(.text+0xe06): undefined reference to `SSL_set_SSL_CTX'
collect2: ld 返回 1
make[2]: *** [objs/nginx] 错误 1
make[2]: Leaving directory `/tmp/ngx_openresty-1.2.1.14/build/nginx-1.2.1'
make[1]: *** [build] 错误 2
make[1]: Leaving directory `/tmp/ngx_openresty-1.2.1.14/build/nginx-1.2.1'
make: *** [all] 错误 2
解决:
[root@Bookmark1 ngx_openresty-1.2.1.14]# ./configure --prefix=/usr/local/ngx_openresty --with-http_ssl_module --with-luajit --with-http_stub_status_module --with-openssl=/opt/distfiles/openssl-0.9.8k(openssl的源码包的地址,不是安装路径)
本文出自 “屌丝运维男” 博客,请务必保留此出处http://navyaijm.blog.51cto.com/4647068/1098502
[root@Bookmark1 tmp]# wget http://agentzh.org/misc/nginx/ngx_openresty-1.2.1.14.tar.gz
二、安装
[root@Bookmark1 tmp]# tar -zxvf ngx_openresty-1.2.1.14.tar.gz
[root@Bookmark1 tmp]# cd ngx_openresty-1.2.1.14
[root@Bookmark1 ngx_openresty-1.2.1.14]# ./configure --prefix=/usr/local/ngx_openresty --with-luajit --with-http_stub_status_module
make时报错如下:
al/ngx_openresty/luajit/lib -lluajit-5.1 -lm -lpcre -lssl -lcrypto -ldl -lz
objs/src/event/ngx_event_openssl.o: In function `ngx_ssl_ecdh_curve':
ngx_event_openssl.c:(.text+0xace): undefined reference to `EC_KEY_new_by_curve_name'
ngx_event_openssl.c:(.text+0xb4d): undefined reference to `EC_KEY_free'
objs/src/http/ngx_http_request.o: In function `ngx_http_ssl_servername':
ngx_http_request.c:(.text+0xcfe): undefined reference to `SSL_get_servername'
ngx_http_request.c:(.text+0xe06): undefined reference to `SSL_set_SSL_CTX'
collect2: ld 返回 1
make[2]: *** [objs/nginx] 错误 1
make[2]: Leaving directory `/tmp/ngx_openresty-1.2.1.14/build/nginx-1.2.1'
make[1]: *** [build] 错误 2
make[1]: Leaving directory `/tmp/ngx_openresty-1.2.1.14/build/nginx-1.2.1'
make: *** [all] 错误 2
解决:
[root@Bookmark1 ngx_openresty-1.2.1.14]# ./configure --prefix=/usr/local/ngx_openresty --with-http_ssl_module --with-luajit --with-http_stub_status_module --with-openssl=/opt/distfiles/openssl-0.9.8k(openssl的源码包的地址,不是安装路径)
本文出自 “屌丝运维男” 博客,请务必保留此出处http://navyaijm.blog.51cto.com/4647068/1098502
相关文章推荐
- redhat手动离线安装nginx遇到的问题openssl
- nginx 安装过程中遇到的问题
- 关于nginx+cgi+cJSON在CentOS虚拟机上将c文件编译成cgi文件遇到的问题归纳
- QT SDK 4.8.4 fedora中安装与编译遇到的小问题与解决,经验分享
- 安装Nginx 以及遇到的问题 PCRE library is not foun
- zlib.h bzlib.h is required——HTTPSQS 编译安装遇到的问题
- LNMP编译安装遇到问题归总
- 安装boost遇到问题,libboost_iostreams.a总是编译不出来
- 编译安装 LNMP架构及遇到的问题
- MatConvNet编译安装遇到的问题
- json-c 编译安装 和 遇到的问题
- OpenStack之安装kvm+编译安装libvirt+解决遇到的问题
- 编译安装Physx + NxOgre 遇到的问题 (总算编译成功)
- 编译安装php+apache中遇到的问题
- 编译安装shibboleth-sp遇到的问题
- 安装Nginx时遇到的pcre库问题
- 在Ubuntu下安装imx6linux系统的交叉编译环境遇到的问题总结
- opensips编译安装时可能遇到的问题
- nginx 安装sticky遇到的问题
- 编译安装PHP 时遇到问题解决方法.