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!
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
Error when bundling devise
Seems to have an issue installing bcrypt ruby because of some issue with the makefile... -Admittedly new to this and trying to keep up the momentum with the RoR tutorials.
I already searched through existing threads and none of them address this specifically.
Tried updating bundler and tried the idea about commenting out the devise install line in the routes.rb...there was no line in there for the devise_for :installs, guessing since the bundle operation fails?
Here are the errors. Sorry it's lengthy.
Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Using rake (10.0.4) Using i18n (0.6.4) Using multi_json (1.7.4) Using activesupport (3.2.12) Using builder (3.0.4) Using activemodel (3.2.12) Using erubis (2.7.0) Using journey (1.0.4) Using rack (1.4.5) Using rack-cache (1.2) Using rack-test (0.6.2) Using hike (1.2.2) Using tilt (1.4.1) Using sprockets (2.2.2) Using actionpack (3.2.12) Using mime-types (1.23) Using polyglot (0.3.3) Using treetop (1.4.12) Using mail (2.4.4) Using actionmailer (3.2.12) Using arel (3.0.2) Using tzinfo (0.3.37) Using activerecord (3.2.12) Using activeresource (3.2.12) Installing bcrypt-ruby (3.1.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
checking for ruby/util.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options:
try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
block in have_header'
from /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:790:inblock in checking_for'
block (2 levels) in postpone'
block in postpone'
Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bcrypt-ruby-3.1.1 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.9.3-p392/gems/bcrypt-ruby-3.1.1/ext/mri/gem_make.out
An error occurred while installing bcrypt-ruby (3.1.1), and Bundler cannot continue.
Make sure that
gem install bcrypt-ruby -v '3.1.1' succeeds before bundling.
Hey guys, I got a tip from stackoverflow to uninstall rvm and reinstall. worked like a charm as they say.
Thanks for your help.
If you're on a Mac, make sure you have Xcode installed (it's free from the Mac App Store). The error is saying
You have to install development tools first, which is the "command line tools" that come with Xcode.
I am on a Mac. thanks, Sean! ...and wow 1.65GB for developer tools...
I downloaded and installed XCode, but I'm getting the identical error including the line about developer tools.
Any other ideas?