简介
1、为什么要降 openssl 版本?
我的工程比较老,使用的还是 rails 3.2 、ruby 1.8(自己源码编译的),生产环境的应用服务器是 passenger。在安装 passenger时发生了错误(passenger-install-nginx-module 的安装方式):提示需要 ruby 支持 openssl。
ossl_pkey_ec.c:815: error: ‘EC_GROUP_new_curve_GF2m’ undeclared (first use in this function)
ossl_pkey_ec.c:815: error: (Each undeclared identifier is reported only once
ossl_pkey_ec.c:815: error: for each function it appears in.)
make[1]: *** [ossl_pkey_ec.o] Error 1
make[1]: Leaving directory `/home/vagrant/ruby-1.8.7-p357/ext/openssl'
make: *** [all] Error 1
后面我查询了下面两篇文章,折腾了很久未能解决问题,最后无奈降级系统自带的 openssl 版本。
-
https://www.cnblogs.com/grimm/p/5568129.html
当前云服务器的系统是 centOS 6.10,默认安装了 openssl 1.0.x 版本,我需要在 ruby-1.8 环境下使用 openssl 0.9.8 系列版

博客讲述因工程较老,安装时提示需openssl支持,查询文章未解决,无奈降级系统自带openssl版本。介绍了安装低版本openssl的步骤,包括下载、编译等,还说明了编译ruby+openssl模块的方法,最终工程可正常运行。
最低0.47元/天 解锁文章
5495

被折叠的 条评论
为什么被折叠?



