Having trouble installing gem devise for my Rails project -


after adding gem 'devise' gem file , running $bundle install, following:

installing bcrypt-ruby (3.1.1) native extensions  gem::installer::extensionbuilderror: error: failed build gem native extension.  /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb  checking ruby/util.h... *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  may need configuration options.   error occurred while installing bcrypt-ruby (3.1.1), , bundler cannot continue. make sure `gem install bcrypt-ruby -v '3.1.1'` succeeds before bundling. 

this returned terminal, tried install bcrypt separately, wont work.

thank in advance !

anonyos-imac:omrails manny$ bundle install fetching gem metadata https://rubygems.org/........... fetching gem metadata https://rubygems.org/.. resolving dependencies... enter password install bundled rubygems system:  using rake (10.1.0)  using i18n (0.6.4)  using multi_json (1.7.7)  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.3)  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.14)  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) native extensions  gem::installer::extensionbuilderror: error: failed build gem native extension.  /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb  checking ruby/util.h... *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  may need configuration options.  provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include`enter code here`     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': compiler failed generate executable file. (runtimeerror) have install development tools first.     /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp'     /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:931:in `block in have_header'     /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'     /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'     /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:254:in `open'     /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'     /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:254:in `open'     /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'     /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'     /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/mkmf.rb:930:in `have_header'     extconf.rb:14:in `<main>'   gem files remain installed in /users/manny/.bundler/tmp/1023/gems/bcrypt-ruby-3.1.1 inspection. results logged /users/manny/.bundler/tmp/1023/gems/bcrypt-ruby-3.1.1/ext/mri/gem_make.out error occurred while installing bcrypt-ruby (3.1.1), , bundler cannot continue. make sure `gem install bcrypt-ruby -v '3.1.1'` succeeds before bundling. 


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -