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 trialJoel David Crouse
9,062 PointsFailed to build gem native extension
After running:
sudo gem install jekyll, I get this error message
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby -r ./siteconf20150608-4772-1rnpvna.rb extconf.rb
creating Makefile
make clean
make
compiling porter.c
make: gcc-4.2: No such file or directory
make: *** [porter.o] Error 1
make failed, exit code 2
Gem files will remain installed in /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/gems/1.9.1/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-10/1.9.1-static/fast-stemmer-1.0.2/gem_make.out
Kellie Kowalski
27,641 PointsKellie Kowalski
27,641 PointsI had the same issue. Ended up installing Xcode, and rerunning sudo gem install jekyll. It worked then.