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 trialsdfngsdlfkjnsdf
8,389 Pointstrouble installing new ruby
tried installing ruby 2.1.1 by doing this in terminal: rbenv install ruby 2.1.1
Downloading ruby-2.1.1.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/e57fdbb8ed56e70c43f39c79da1654b2 Installing ruby-2.1.1...
BUILD FAILED
Inspect or clean up the working tree at /var/folders/p6/6f6kjls95wd25p_7b_xf1xxw0000gn/T/ruby-build.20140318174926.4520 Results logged to /var/folders/p6/6f6kjls95wd25p_7b_xf1xxw0000gn/T/ruby-build.20140318174926.4520.log
Last 10 log lines: file.c:261: error: ‘m’ undeclared (first use in this function) file.c:261: error: ‘kCFStringNormalizationFormC’ undeclared (first use in this function) file.c:262: error: ‘all’ undeclared (first use in this function) file.c:263: error: ‘kCFStringEncodingUTF8’ undeclared (first use in this function) file.c:263: error: ‘buflen’ undeclared (first use in this function) file.c:265: error: ‘UInt8’ undeclared (first use in this function) file.c:265: error: expected expression before ‘)’ token file.c:269: error: ‘s’ undeclared (first use in this function) make: *** [file.o] Error 1 make: *** Waiting for unfinished jobs....
what should i do/delete etc. to remedy this and get ruby 2.1.1 up and running? running on mac os x 10.7.5 if that matters.
1 Answer
JoJo KoKo
4,712 PointsFind out if you have a GCC compiler. If not, download a GCC compiler or download XCode w/ Command Tools. Then type "which gcc" and copy the directory. Then type "env CC=/usr/bin/gcc rbenv install $version"