Centos gem install bosh_cli 报错 Unable to require openssl, install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources(已解决)

安装新版本的openssl,教程路径:
https://blog.csdn.net/shiyong1949/article/details/78212971?locationNum=10&fps=1

 bosh官网:

http://bosh.cloudfoundry.org/docs/cli-v2-install/

$ sudo yum install gcc gcc -c ++ ruby​​ ruby​​-devel mysql-devel postgresql-devel postgresql-libs sqlite-devel libxslt-devel libxml2-devel patch openssl
$ gem install yajl-ruby

  

运行:

gem source -r https://rubygems.org/ 

其次(以下两个都试一下)

gem source -a https://rubygems.org/

gem source -a http://rubygems.org/

 

之后gems install bosh_cli可以成功运行



 

posted @ 2018-07-27 16:48  西门燕儿  阅读(991)  评论(0编辑  收藏  举报