IDO老徐,在深圳,某上市公司质量部负责人,干了十二年软件测试,公号"简尚" ,博客isTester.com ,关注「软件测试从业者综合能力提升」,微信957863300
编译的 Ruby 缺少 openssl 支持的解决方法 (已解决)
上一篇 /
下一篇 2016-05-27 13:23:32
/ 个人分类:IDO杂谈
4QH7J7a}*xcaS0
51Testing软件测试网j[ U*P8y)q
前提:编译安装了ruby2.3.0。
qI,o1M:`?*g0然后安装gem时, 会有错误提示:
"k^!S#jX0ERROR: While executing gem ... (Gem::Exception)
(c\/c uV ^M0Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources51Testing软件测试网Z2O
n/C5z b}rHi
重新编译发现, make的输出中有
Ww@e9nw{UUg0configuring openssl51Testing软件测试网Q1s E_1hN;}/kHK5g
Failed to configure openssl. It will not be installed.
A'RP\ B"^0如上字样。51Testing软件测试网c7{R_5aca
51Testing软件测试网9zZDSwb
}z)H6nk/r0然后重新配置, 在运行configure时加上了openssl路径信息即可。 正确编译的姿势如下:51Testing软件测试网1x
q2_/CZfH8Q]
$./configure --with-openssl-dir=/usr/local/ssl
再次安装gem,无报错信息。编译成功。
HG v&i:Pet0
&I