Getting few errors while installing ruby-2.1.2 using rvm. I am new to ruby and hence need assistance. Please let me know
Installation log and other relevant information here: log
From the log provided in problem description, I have ruby 2.1.2 installed in the system. However, getting error when tried listing gems with gem list
due to installation errors.After changing to 2.1.2 i.e., rvm use 2.1.2
and executing ruby -r openssl -e 'puts OpensSSL::OPENSSL_VERSION'
gives this error:
/Users/praveenk.k/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- openssl (LoadError) from /Users/praveenk.k/.rvm/rubies/ruby-2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in require'
which openssl
.which openssl
prints the output/usr/local/opt/[email protected]/bin/openssl
. Hence I assume I have openssl present in my system.cat "/Users/praveenk.k/.rvm/log/1576471018_ruby-2.1.2/gem.install.gem-wrappers->=1.4.0.log"
is like this:ERROR: Loading command: install (LoadError) cannot load such file -- openssl ERROR: While executing gem ... (NoMethodError) undefined method
invoke_with_build_args' for nil:NilClass`