IDO老徐,在深圳,某上市公司质量部负责人,干了十二年软件测试,公号"简尚" ,博客isTester.com ,关注「软件测试从业者综合能力提升」,微信957863300

编译的 Ruby 缺少 openssl 支持的解决方法 (已解决)

上一篇 / 下一篇  2016-05-27 13:23:32 / 个人分类:IDO杂谈


Xa-hbQ]0
51Testing软件测试网\-BEu8OG)x/O;D

前提:编译安装了ruby2.3.0。 51Testing软件测试网Se4u.W#N F

然后安装gem时, 会有错误提示:51Testing软件测试网l{,s$w~,N.Ep

ERROR: While executing gem ... (Gem::Exception)

5R bZ+StbH.x}T3F0

Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources51Testing软件测试网Mz8_;q&I&K&N,y

重新编译发现, make的输出中有51Testing软件测试网\ S/e*jHv2M

configuring openssl51Testing软件测试网*\'{0o-h1o"f,k

Failed to configure openssl. It will not be installed.51Testing软件测试网 `H+c1]F+f.PL+{

如上字样。

OED!D E0

51Testing软件测试网(a x+Sh xY2KY8G
51Testing软件测试网 qcY} ^ y4|

然后重新配置, 在运行configure时加上了openssl路径信息即可。 正确编译的姿势如下:

P0s l'JL%@5wn6x5Z-G0
$./configure  --with-openssl-dir=/usr/local/ssl
$make
$sudo make install

再次安装gem,无报错信息。编译成功。51Testing软件测试网-g"\/w,~s%m!r


&K#gG+vmLx0
51Testing软件测试网]Ed`&Y2m-[


TAG: gem openssl Ruby ruby

 

评分:0

我来说两句

xuquan

xuquan

IDO老徐,坐标深圳,测试经理,干了十年测试,公号"简尚" ,个人博客isTester.com ,关注「软件测试从业者综合能力提升」,微信957863300

日历

« 2024-04-28  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 915105
  • 日志数: 427
  • 建立时间: 2012-06-04
  • 更新时间: 2022-02-23

RSS订阅

Open Toolbar