`
angelguo
  • 浏览: 115631 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

ruby运行出错3--centos7编译ruby2.3.0出错

    博客分类:
  • Ruby
 
阅读更多

编译安装了ruby2.3.0。 然后安装gem时, 会有错误提示:


ERROR: While executing gem ... (Gem::Exception)
Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources

 

重新编译发现, make的输出中有


configuring openssl
Failed to configure openssl. It will not be installed.

如上字样。

 

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

$ cd ruby-2.3.0
$ ./configure  --with-openssl-dir=/usr/local/ssl
$ make
$ sudo make install

再次安装gem,无报错信息。 编译成功。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics