cannot load such file -- openssl
2014-11-18 23:37
1346 查看
[test@localhost usr]$ /usr/local/ruby/bin/gem install bundler ERROR: Loading command: install (LoadError) cannot load such file -- openssl ERROR: While executing gem ... (NoMethodError) undefined method `invoke_with_build_args' for nil:NilClass
在用源码安装ruby之后,想要安装bundler,却报出上面错误
\curl -sSL https://get.rvm.io | bash
rvm pkg install openssl
重新编译
./configure --prefix=/opt/ruby20 --with-openssl-dir=/home/test/.rvm/usr
最后可能会提示如下的错误,不用管他
configure: WARNING: unrecognized options: --with-openssl-dir
make make install
没有问题了
[root@localhost ruby-2.0.0-p598]# /opt/ruby20/bin/gem install bundler -V GET https://rubygems.org/latest_specs.4.8.gz 302 Moved Temporarily GET https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
如果报出这个警告:
'rvm pkg ...' is deprecated
则采用
rvm autolibs
相关文章推荐
- Ruby on Rails 安装出现`require’: cannot load such file — openssl (LoadError)的解决方法
- Ubuntu上安装gem包时报`require': cannot load such file -- openssl (LoadError)
- Ubuntu上安装gem包时报`require': cannot load such file -- openssl (LoadError)
- cannot load such file -- openssl 用gem安装rails时遭遇的错误
- pod update, LoadError - cannot load such file -- openssl报错解决办法,pod重装
- 源码安装ruby时 ERROR: Loading command: install (LoadError) cannot load such file -- zlib 解决方法
- `require': cannot load such file -- bcrypt_ext (LoadError) (window 7+ruby2.33+rails5.0. 下出现的问题)
- Rails console 不能使用,出现cannot load such file -- readline (LoadError) 的解决
- no such file to load -- openssl
- CocoaPods 【LoadError - cannot load such file -- nanaimo】
- 解决rails5.0 ruby2.3.1下bcryp_ext LoadError: Cannot load such file
- rubygems/core_ext/kernel_require.rb:120:in `require': cannot load such file -- colored2 (LoadError)
- MacOS上brew提示cannot load such file mach
- cannot load such file -- zlib
- MacOS上brew提示cannot load such file mach
- kernel_require.rb:55:in `require': cannot load such file -- mach (LoadError)
- Ruby 'require' error: cannot load such file
- MacOS上brew提示cannot load such file mach
- Rails错误:LoadError: no such file to load – openssl 解决办法
- Failed to load libGL.so error libGL.so: cannot open shared object file: No such file or directory