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

Development Tools Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Mac

ryan champion
ryan champion
6,528 Points

Ruby install error

Hi,my Mac doesn't have Ruby installed,and my version is OS X Yosemite 10.10.1.When I was trying to install Ruby,I got a error message:

BUILD FAILED (OS X 10.10.1 using ruby-build 20150130-2-g8106d8f)

Inspect or clean up the working tree at /var/folders/ws/xzjlwbnj1djb_0c94g1cpffm0000gp/T/ruby-build.20150224012452.66326
Results logged to /var/folders/ws/xzjlwbnj1djb_0c94g1cpffm0000gp/T/ruby-build.20150224012452.66326.log

Last 10 log lines:
    from /private/var/folders/ws/xzjlwbnj1djb_0c94g1cpffm0000gp/T/ruby-build.20150224012452.66326/ruby-2.2.0/lib/rubygems/dependency_installer.rb:394:in `install'
    from /private/var/folders/ws/xzjlwbnj1djb_0c94g1cpffm0000gp/T/ruby-build.20150224012452.66326/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

What should I do with this?

5 Answers

ryan champion
ryan champion
6,528 Points

Hi, Thanks guys. The :

ruby-v

command came up with nothing. I've since located:

http://railscasts.com/episodes/310-getting-started-with-rails

The video on the page was awesome - got me through homebrew/RVM/ Ruby install.

Could be useful for others. Still curious as to why the " ruby-v" command did nothing in the frsy place. A friend on Yosemite had a similar problem.

William Li
PLUS
William Li
Courses Plus Student 26,868 Points

Well, I guess that is probably because you haven't installed the Command Line Tools for Yosemite. This is a Command Line tools bundle distributed by Apple, it included lots of essential Command utilities, I supposed Ruby is one of them. If you are curious how to install it, there's a guide.

RailsCase is great, but just keep in mind that its content isn't very up-to-date, the last video uploaded was over a year ago, it's still an amazing Rails resource, many of the topics it talked about still quite applicable today.

Hi ryan champion !

I wonder if you actually do have a system install of ruby.

What happens if you run this in the same directory?

rails -v
William Li
PLUS
William Li
Courses Plus Student 26,868 Points

Hi, Ryan, OS X Yosemite ships with Ruby 2.0 https://github.com/Homebrew/homebrew/issues/29795, try typing this command see what the output you get

ruby -v
ryan champion
ryan champion
6,528 Points

Awesome William. Things are starting to make some sense now.. ;-)