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 Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Mac

David Langley
David Langley
10,965 Points

Ruby install failed

Followed the instructions on the video but my install failed. Any ideas ??

BUILD FAILED

Inspect or clean up the working tree at /var/folders/c2/5hf56cjs1pz292d_zdtc13rc0000gn/T/ruby-build.20140226223134.5503 Results logged to /var/folders/c2/5hf56cjs1pz292d_zdtc13rc0000gn/T/ruby-build.20140226223134.5503.log

Last 10 log lines: In file included from stubs.c:16: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not found

include <X11/Xlib.h>

            ^

1 error generated. make[2]: *** [stubs.o] Error 1 make[1]: *** [ext/tk/all] Error 2 make[1]: *** Waiting for unfinished jobs.... linking shared-object ripper.bundle make: *** [build-ext] Error 2

hope you can help.....

David Langley
David Langley
10,965 Points

sorry should have mentioned i'm on a MacBook Pro.

1 Answer

David O' Rojo
David O' Rojo
11,051 Points

Try this:

Open your terminal and execute

xcode-select --install