Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Adam Parker
1,871 PointsTrouble installing ruby gem
Hi, I was trying to install the money gem to follow along with one of the ruby videos. When I tried, I got the following error message:
ERROR: Loading command: install (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
Also, when I later entered "rvm rubygems current" at the command prompt, I got another error message:
Removing old Rubygems files...
Installing rubygems-2.0.3 for ruby-2.0.0-p0 ...
Error running 'env GEM_PATH=/Users/Adam/.rvm/gems/ruby-2.0.0-p0:/Users/Adam/.rvm/gems/ruby-2.0.0-p0@global:/Users/Adam/.rvm/gems/ruby-2.0.0-p0:/Users/Adam/.rvm/gems/ruby-2.0.0-p0@global GEM_HOME=/Users/Adam/.rvm/gems/ruby-2.0.0-p0 /Users/Adam/.rvm/rubies/ruby-2.0.0-p0/bin/ruby /Users/Adam/.rvm/src/rubygems-2.0.3/setup.rb', please read /Users/Adam/.rvm/log/ruby-2.0.0-p0/rubygems.install.log
Installation of rubygems did not complete successfully.
Can anyone help me out?
2 Answers
James Barnett
39,199 PointsYou need a version of Ruby that has Open SSL support.
The RVM project recommends you try using this code.
rvm get head
rvm pkg remove
rvm requirements run
rvm reinstall 1.9.3
source: https://rvm.io/packages/openssl/
Adam Parker
1,871 PointsThanks for the reply.