OpenSSL library is not used
来源:互联网 发布:淘宝主播申请 编辑:程序博客网 时间:2024/05/22 15:22
问题:
在源码编译安装nginx的时候出现:
- Configuration summary
- + using system PCRE library
- + OpenSSL library is not used
- + using builtin md5 code
- + sha1 library is not found
- + using system zlib library
表象原因:
出现以上问题的表象原因是,在安装nginx的时候没有指定openssl的解压路径。正确的做法如下:./configure --prefix=/usr/local/nginx --with-openssl=/usr/local/openssl-1.0.1j --with-http_ssl_module
如果pcre和zlib出现类似的问题,指定路径就可。
--with-pcre=/usr/local/pcre-7.7 --with-zlib=/usr/local/zlib-1.2.3 --with-http_stub_status_module
--with-pcre=/usr/local/pcre-7.7 --with-zlib=/usr/local/zlib-1.2.3 --with-http_stub_status_module
背景:
因为nginx的源码安装前提是安装了openssl\zlib\pcre,分别对nginx提供ssl安全\gzip压缩(提高静态资源访问速度从而提高网站的整体访问速度)\正则表达式支持,但是有时候在安装nginx的时候会找不到你的openssl解压目录,这个时候就需要手动指定openssl的解压缩目录。
思考:
这里有个问题,从上面的日志看,我也没有指定pcre和zlib的目录,为什么他们就能找到而openssl找不到?带着这个疑问搜索网络资源对这个问题做了一下深究,发现如果不显示指定openssl zlib和pcre库目录的话,默认会去/usr/local/lib下面找,
root@michael-pc:/usr/local/src/nginx-1.12.2# ls -al /usr/local/lib总用量 1952drwxr-xr-x 5 root root 4096 10月 26 23:00 .drwxr-xr-x 12 root root 4096 10月 27 21:53 ..-rw-r--r-- 1 root root 941402 10月 26 22:58 libpcre2-8.a-rwxr-xr-x 1 root root 937 10月 26 22:58 libpcre2-8.lalrwxrwxrwx 1 root root 19 10月 26 22:58 libpcre2-8.so -> libpcre2-8.so.0.3.0lrwxrwxrwx 1 root root 19 10月 26 22:58 libpcre2-8.so.0 -> libpcre2-8.so.0.3.0-rwxr-xr-x 1 root root 732544 10月 26 22:58 libpcre2-8.so.0.3.0-rw-r--r-- 1 root root 13610 10月 26 22:58 libpcre2-posix.a-rwxr-xr-x 1 root root 994 10月 26 22:58 libpcre2-posix.lalrwxrwxrwx 1 root root 23 10月 26 22:58 libpcre2-posix.so -> libpcre2-posix.so.0.0.1lrwxrwxrwx 1 root root 23 10月 26 22:58 libpcre2-posix.so.0 -> libpcre2-posix.so.0.0.1-rwxr-xr-x 1 root root 18660 10月 26 22:58 libpcre2-posix.so.0.0.1-rw-r--r-- 1 root root 131926 10月 26 23:00 libz.alrwxrwxrwx 1 root root 14 10月 26 23:00 libz.so -> libz.so.1.2.11lrwxrwxrwx 1 root root 14 10月 26 23:00 libz.so.1 -> libz.so.1.2.11-rwxr-xr-x 1 root root 120336 10月 26 23:00 libz.so.1.2.11drwxr-xr-x 2 root root 4096 10月 26 23:00 pkgconfigdrwxrwsr-x 4 root staff 4096 2月 16 2017 python2.7drwxrwsr-x 3 root staff 4096 2月 16 2017 python3.5
从上面可以看出之前在源码安装zlib和pcre的时候已经在/usr/local/lib下面放了相应的编译之后的库文件,但是并没有找到openssl的踪影,这就是为什么当我们在不显示指定源码目录的时候提示找不到openssl库。
文中如有不对的地方还请指正,感激不尽:)
阅读全文
0 0
- OpenSSL library is not used
- OpenSSL library is not used
- object "std_logic" is used but not declared
- private field 'cached_y_' is not used解决方法
- is not used in any concrete target
- error: Libtool library used but 'LIBTOOL' is undefined
- Apache your port 80 is not actually used
- The dependency `AFNetworking ` is not used in any concrete target
- The dependency `AFNetworking` is not used in any concrete target.
- OCP052_100_Situations in Which Direct Path Load Is Not Used(译)
- The dependency `XXXX` is not used in any concrete target.
- The dependency `Masonry` is not used in any concrete target.
- The dependency `***` is not used in any concrete target.
- 关于Cocopods错误 is not used in any concrete target
- cocoaPods "xxxx is not used in any concrete target"
- the `gets' function is dangerous and should not be used.
- The dependency `AFNetworking ` is not used in any concrete target
- The dependency `MBProgressHUD` is not used in any concrete target.
- 【OpenCv/EmguCv】指针式仪表读数(一)
- R语言学习笔记(三)数据处理
- 微鲸:体面的智能电视应该是什么样子?
- nodejs之http-proxy-middleware应用
- 2017/10/27
- OpenSSL library is not used
- 让AI变得唾手可得,才是云计算的最新战场
- 属于 MVP 的专属礼物,Xplay6 库里定制机爆表图赏
- 一周预告:狼人杀背后的连麦技术有哪些痛点?听腻了视频鉴黄,音频审核的技术你了解么?| 硬创公开课
- 英特尔涉足区块链,公开海鲜供应链项目
- 个人总结17
- 舒适的路线
- DFS求解出栈顺序,输出所有情况
- 九合创投:这里有一份关于未来的智能互联网Mapping