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 trialJoshua Kleveter
21,181 Pointsrbenv install 2.2.0 BUILD FAILED error
I've installed rbenv, ruby-build, and Command Line Tools. When I run the command rbenv install 2.2.0
it gives a BUILD FAILED error. Here's what my console looks like:
Joshua: ~ > rbenv install 2.2.0
Downloading openssl-1.0.1l.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/b2cf4d48fe5d49f240c61c9e624193a6f232b5ed0baf010681e725963c40d1d4
Installing openssl-1.0.1l...
Installed openssl-1.0.1l to /Users/Joshua/.rbenv/versions/2.2.0
Downloading ruby-2.2.0.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/7671e394abfb5d262fbcd3b27a71bf78737c7e9347fa21c39e58b0bb9c4840fc
Installing ruby-2.2.0...
BUILD FAILED (OS X 10.10.2 using ruby-build 20150130-2-g8106d8f)
Inspect or clean up the working tree at /tmp/ruby-build.20150218175402.56007
Results logged to /tmp/ruby-build.20150218175402.56007.log
Last 10 log lines:
from /private/tmp/ruby-build.20150218175402.56007/ruby-2.2.0/lib/rubygems/dependency_installer.rb:394:in `install'
from /private/tmp/ruby-build.20150218175402.56007/ruby-2.2.0/lib/rubygems.rb:558:in `install'
from ./tool/rbinstall.rb:717:in `block (2 levels) in <main>'
from ./tool/rbinstall.rb:716:in `each'
from ./tool/rbinstall.rb:716:in `block in <main>'
from ./tool/rbinstall.rb:749:in `call'
from ./tool/rbinstall.rb:749:in `block in <main>'
from ./tool/rbinstall.rb:746:in `each'
from ./tool/rbinstall.rb:746:in `<main>'
make: *** [do-install-all] Error 1
Joshua: ~>
What in the world is going wrong?
3 Answers
Sage Elliott
30,003 PointsI was also having trouble getting it to instal Ruby 2.2.0. I decided to try and use RVM as the manager and it worked. https://rvm.io/rvm/install. I followed the instructions for "Install RVM stable with ruby:" and restarted my terminal. ruby -v now returns 2.2.0p0!
Happy coding!
Charlie Jaime
17,351 PointsInstall ruby build first then the rbenv should be allowed to install 1st) install ruby-build or brew install ruby-build 2nd) rbenv install 2.2.0 It should work
if you like my answer vote me up or mark me for the best answer thank you and great coding!
Joshua Kleveter
21,181 PointsI've already installed ruby-build, so it should be working; the error does not change though. The rbenv install
command is not available unless ruby-build is installed.
Any other thoughts? I'm personally wondering if it's a corrupted file.
Joshua Kleveter
21,181 PointsGot it to work by installing Ruby 2.1.5 instead of 2.2.0. Not sure why the difference but it'll work for now.
Joshua Kleveter
21,181 PointsJoshua Kleveter
21,181 PointsThat worked. Thanks!