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

Ruby

Build Fail and Installing Ruby

Hey All,

I recently have been working with the Ruby Rails corse.

So mistakenly I've installed Rails before the current version of Ruby and in back-tracking to install Ruby I get a Build Fail Error and "Inspect or clean up the working tree at /var/folders/dw/hjf2bfpd007cv_55_23scqjc0000gn/T/ruby-build.20150428151726.39693".

My thought process was, maybe there is a file in this directory that may need to be deleted. I found a yaml -0.1.0.6 file then deleted it. Additionally I deleted the Rails folder created just to try to start from scratch.

At this point Im trying to figure out the best way to install it from scratch.

"Keion-Embrys-MacBook-Pro:~ kyrozstorm$ rbenv install 2.2.2 Downloading ruby-2.2.2.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/5ffc0f317e429e6b29d4a98ac521c3ce65481bfd22a8cf845fa02a7b113d9b44 Installing ruby-2.2.2...

BUILD FAILED (OS X 10.8.5 using ruby-build 20150413-9-g78cda70)

Inspect or clean up the working tree at /var/folders/dw/hjf2bfpd007cv_55_23scqjc0000gn/T/ruby-build.20150428173643.565 Results logged to /var/folders/dw/hjf2bfpd007cv_55_23scqjc0000gn/T/ruby-build.20150428173643.565.log

Last 10 log lines: Target: x86_64-apple-darwin12.6.0 Thread model: posix compiling dmydln.c compiling miniinit.c compiling miniprelude.c translating probes probes.d xcrun: Error: could not stat active Xcode path '/Developer'. (No such file or directory) dtrace: failed to compile script probes.d: line 1: empty D program translation unit make: *** [probes.h] Error 1 make: *** Waiting for unfinished jobs...."

Any thoughts?

Jason Seifer

Hey Morgan,

Running Mountain Lion OS X 10.8.5

Here is an update of where I am at now:

I tried a few suggestions and now I get a return of:

Keion-Embrys-MacBook-Pro:~ kyrozstorm$ rvm install ruby 2.0.0-p645 Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-1.9.3-p392/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles', to fix temporarily in this shell session run: 'rvm use ruby-1.9.3-p392'. ruby-2.0.0-p645 - #removing src/ruby-2.0.0-p645.. Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p645. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Installing Ruby from source to: /usr/local/rvm/rubies/ruby-2.0.0-p645, this may take a while depending on your cpu(s)... ruby-2.0.0-p645 - #downloading ruby-2.0.0-p645, this may take a while depending on your connection... ruby-2.0.0-p645 - #extracting ruby-2.0.0-p645 to /usr/local/rvm/src/ruby-2.0.0-p645.... ruby-2.0.0-p645 - #configuring.................................................. ruby-2.0.0-p645 - #post-configuration. ruby-2.0.0-p645 - #compiling...................................................| ruby-2.0.0-p645 - #installing.............. ruby-2.0.0-p645 - #making binaries executable.. ruby-2.0.0-p645 - #downloading rubygems-2.4.6 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 437k 100 437k 0 0 689k 0 --:--:-- --:--:-- --:--:-- 2526k No checksum for downloaded archive, recording checksum in user configuration. ruby-2.0.0-p645 - #extracting rubygems-2.4.6.... ruby-2.0.0-p645 - #removing old rubygems......... ruby-2.0.0-p645 - #installing rubygems-2.4.6..................... ruby-2.0.0-p645 - #gemset created /usr/local/rvm/gems/ruby-2.0.0-p645@global ruby-2.0.0-p645 - #importing gemset /usr/local/rvm/gemsets/global.gems.........| ruby-2.0.0-p645 - #generating global wrappers........ ruby-2.0.0-p645 - #gemset created /usr/local/rvm/gems/ruby-2.0.0-p645 ruby-2.0.0-p645 - #importing gemsetfile /usr/local/rvm/gemsets/default.gems evaluated to empty gem list ruby-2.0.0-p645 - #generating default wrappers........ ruby-2.0.0-p645 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake). Install of ruby-2.0.0-p645 - #complete Ruby was built without documentation, to build it run: rvm docs generate-ri Keion-Embrys-MacBook-Pro:~ kyrozstorm$ ruby -v ruby 2.0.0p645 (2015-04-13 revision 50299) [x86_64-darwin12.6.0] Keion-Embrys-MacBook-Pro:~ kyrozstorm$

Not sure if I trust what I did haha. Still would like to start from scratch if possible.

Any thoughts Jason Seifer Jim Hoskins