在RHEL 7.3上安装Rails 5.1.4

时间:2017-12-12 11:19:00

标签: ruby-on-rails ruby rhel

我正在尝试在RHEL 7.3服务器上安装Rails 5.1.4。 Ruby Open 2.4.2与OpenSSL 1.0.2一起安装在节点上。

安装rails时出现以下错误。

# gem install rails
Error loading RubyGems plugin "/usr/local/rvm/gems/ruby-
2.4.2@global/gems/executable-hooks-1.3.2/lib/rubygems_plugin.rb": 
/lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found (required by 
/usr/local/rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/x86_64-linux/openssl.so) - 
/usr/local/rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/x86_64-linux/openssl.so (LoadError)
Error loading RubyGems plugin "/usr/local/rvm/gems/ruby-
2.4.2@global/gems/gem-wrappers-1.3.2/lib/rubygems_plugin.rb": 
/lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found (required by 
/usr/local/rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/x86_64-linux/openssl.so) - 
/usr/local/rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/x86_64-linux/openssl.so (LoadError)
ERROR:  Loading command: install (LoadError)
/lib64/libcrypto.so.10: version `OPENSSL_1.0.2' not found (required by /usr/local/rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/x86_64-linux/openssl.so) - /usr/local/rvm/rubies/ruby-2.4.2/lib/ruby/2.4.0/x86_64-linux/openssl.so
ERROR:  While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
#


# rvm list
rvm rubies
* ruby-2.4.1 [ x86_64 ]
=> ruby-2.4.2 [ x86_64 ]
# => - current
# =* - current && default
#  * - default

# openssl version
OpenSSL 1.0.2n  7 Dec 2017

我已更新OpenSSL版本以尝试修复它,但错误没有改变。

还更新为Ruby 2.4.2。

任何帮助都将不胜感激。

感谢。

0 个答案:

没有答案