请问openssl 降级到1.0.1版本
Tofloor
poster avatar
laixiaozi
deepin
2018-06-28 02:35
Author
      各位大神,请问一下。我需要安装lnmp 环境。需要的openssl 版本为  1.0.* 但是系统自带的openssl  为 1.1 这样导致我的php openssl 编译安装不上。
于是我尝试卸载 apt-get remove openssl 和 apt-get -f autoremove openssl  还有apt-get  purge openssl .但是系统提示 libxmlbeans-java : 依赖: libsaxonhe-java 但是它将不会被安装
。请问这个时候我怎么吧openssl降级为1.0.1左右的版本。。急求。。

Reply Favorite View the author
All Replies
avatar
wildlife
deepin
2018-06-28 03:29
#1
去 openssl 官网下载 代码包,解压,打补丁(如果需要的话),编译时指定该 openssl 路径即可。
例如:编译 Nginx 可使用参数 --with-openssl=/root/src/lnmp1.5/src/openssl-1.0.2o 来指定

参考1:https://imququ.com/post/my-nginx-conf.html
参考2:https://lanseyujie.com/post/buil ... nt-environment.html
Reply View the author
avatar
laixiaozi
deepin
2018-06-28 18:29
#2
本帖最后由 laixiaozi 于 2018-6-28 10:33 编辑

谢谢大神,我已经按照这个方法试了一下。,

目前LNMP 环境已经安装好了。
httpd和nginx也都指定目录编译通过。

只是安装php的扩展openssl编译的时候系统提示 libssl not found
网上搜索说是缺少openssl-dev 于是我查看了一下。系统里面也已经安装过了。很奇怪。
Reply View the author