I spent the past couple of hours, in addition to scouring Stack Overflow, trying to find a solution to this problem, but I haven't been able to solve anything when runningbundle install.
Here is the error message:
Alexander-MacBook-Pro:HealthApp Alex$ bundle install
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies......
Using rake (10.0.3)
Using i18n (0.6.4)
Using multi_json (1.6.1)
Using activesupport (3.2.11)
Using builder (3.0.4)
Using activemodel (3.2.11)
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.1)
Using tilt (1.3.4)
Using sprockets (2.2.2)
Using actionpack (3.2.11)
Using mime-types (1.21)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.4.4)
Using actionmailer (3.2.11)
Using arel (3.0.2)
Using tzinfo (0.3.36)
Using activerecord (3.2.11)
Using activeresource (3.2.11)
Using bcrypt-ruby (3.0.1)
Using sass (3.2.6)
Using bootstrap-sass (2.3.0.1)
Using bundler (1.3.5)
Using cancan (1.6.9)
Using coffee-script-source (1.6.0)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.3)
Using json (1.7.7)
Using rdoc (3.12.2)
Using thor (0.17.0)
Using railties (3.2.11)
Using coffee-rails (3.2.2)
Using commonjs (0.2.6)
Using orm_adapter (0.4.0)
Using warden (1.2.1)
Using devise (2.2.3)
Using sass-rails (3.2.6)
Using font-awesome-sass-rails (3.0.2.2)
Using haml (4.0.0)
Using jquery-rails (2.2.1)
Using jquery-ui-rails (3.0.1)
Using kaminari (0.14.1)
Using less (2.2.2)
Using less-rails (2.2.6)
Installing libv8 (3.11.8.13)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/Alex/.rvm/rubies/jruby-1.7.4/bin/jruby extconf.rb
NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS or modify .jrubyrc to enable.
(root) at /Users/Alex/.rvm/rubies/jruby-1.7.4/lib/ruby/shared/mkmf.rb:8
require at org/jruby/RubyKernel.java:1054
(root) at /Users/Alex/.rvm/rubies/jruby-1.7.4/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
(root) at extconf.rb:1
Gem files will remain installed in /Users/Alex/.rvm/gems/jruby-1.7.4/gems/libv8-3.11.8.13 for inspection.
Results logged to /Users/Alex/.rvm/gems/jruby-1.7.4/gems/libv8-3.11.8.13/ext/libv8/gem_make.out
An error occurred while installing libv8 (3.11.8.13), and Bundler cannot
continue.
Make sure that `gem install libv8 -v '3.11.8.13'` succeeds before bundling.
Running gem install libv8 -v '3.11.8.13' doesn't help much.
Add the following to your ~/.jrubyrc (create it if it does not exist):
cext.enabled=true
Then run the bundle install command again.
Related
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.
Closed 9 years ago.
Currently Working
Not sure what happened.
Built gemfile.lock on a linux box and moved it over. Had missing things, ran bundle install, worked.
Bundle is ignoring my inclusion of the "pg" gem in my Gemfile. Installing pg through gem install pg works fine, and it shows up when I use gem list --local.
Gemfile:
source 'http://rubygems.org'
gem 'rails'
gem 'pg'
bundle install (no pg):
Using rake (10.0.4)
Using i18n (0.6.1)
Using multi_json (1.7.2)
Using activesupport (3.2.13)
Using builder (3.0.4)
Using activemodel (3.2.13)
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.3.7)
Using sprockets (2.2.2)
Using actionpack (3.2.13)
Using mime-types (1.23)
Using polyglot (0.3.3)
Using treetop (1.4.12)
Using mail (2.5.3)
Using actionmailer (3.2.13)
Using arel (3.0.2)
Using tzinfo (0.3.37)
Using activerecord (3.2.13)
Using activeresource (3.2.13)
Using json (1.7.7)
Using rack-ssl (1.3.3)
Using bundler (1.3.5)
Using rdoc (3.12.2)
Using thor (0.18.1)
Using railties (3.2.13)
Using rails (3.2.13)
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
bundle show pg:
Could not find gem 'pg'.
Did you mean pg?
gem list --local (pg exists):
*** LOCAL GEMS ***
actionmailer (3.2.13)
actionpack (3.2.13)
activemodel (3.2.13, 3.1.11)
activerecord (3.2.13)
activeresource (3.2.13)
activesupport (3.2.13, 3.1.11)
arel (3.0.2)
bigdecimal (1.2.0)
builder (3.0.4)
bundler (1.3.5)
erubis (2.7.0)
hike (1.2.2)
i18n (0.6.4, 0.6.1)
io-console (0.4.2)
journey (1.0.4)
json (1.7.7)
mail (2.5.3)
mime-types (1.23)
minitest (4.3.2)
multi_json (1.7.2)
pg (0.15.1 x64-mingw32)
polyglot (0.3.3)
psych (2.0.0)
rack (1.4.5, 1.3.10)
rack-cache (1.2)
rack-mount (0.8.3)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13)
railties (3.2.13)
rake (10.0.4, 0.9.6)
rdoc (4.0.0, 3.12.2)
rubygems-update (2.0.3)
sprockets (2.2.2, 2.0.4)
test-unit (2.0.0.0)
thor (0.18.1)
tilt (1.3.7)
treetop (1.4.12)
tzinfo (0.3.37)
Also, if I try to run rails s, rake db:create, etc., I get:
rake aborted!
Please install the postgresql adapter: `gem install activerecord-postgresql-adap
ter` (pg is not part of the bundle. Add it to Gemfile.)
Tasks: TOP => db:create
(See full trace by running task with --trace)
Using:
Windows 7, 64-bit
Rails 3.2.13
ruby 2.0.0p0 (2013-02-24) [x64-mingw32]
Bundler version 1.3.5
Try deleting your "gemfile.lock" and then re-running bundle install?
Try to remove Gemfile.lock and run bundle check to see if the dependencies listed in Gemfile are satisfied by currently installed gems.
I have tried multiple times to fix this problem, but it keeps popping up. Whenever I run bundle install with my 'forem' in the Gemfile, it gives me this error:
Fetching git://github.com/radar/forem.git
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Installing rake (10.0.3)
Installing i18n (0.6.4)
Installing multi_json (1.7.0)
Installing activesupport (3.2.12)
Installing builder (3.0.4)
Installing activemodel (3.2.12)
Installing erubis (2.7.0)
Installing journey (1.0.4)
Installing rack (1.4.5)
Installing rack-cache (1.2)
Installing rack-test (0.6.2)
Installing hike (1.2.1)
Installing tilt (1.3.5)
Installing sprockets (2.2.2)
Installing actionpack (3.2.12)
Installing mime-types (1.21)
Installing polyglot (0.3.3)
Installing treetop (1.4.12)
Installing mail (2.4.4)
Installing actionmailer (3.2.12)
Installing arel (3.0.2)
Installing tzinfo (0.3.37)
Installing activerecord (3.2.12)
Installing activerecord-jdbc-adapter (1.2.8)
Installing jdbc-sqlite3 (3.7.2.1)
Installing activerecord-jdbcsqlite3-adapter (1.2.7)
Installing activeresource (3.2.12)
Installing bcrypt-ruby (3.0.1)
Installing blankslate (3.1.2)
Installing bouncy-castle-java (1.5.0147)
Using bundler (1.3.4)
Installing cancan (1.6.8)
Installing coffee-script-source (1.6.1)
Installing execjs (1.4.0)
Installing coffee-script (2.2.0)
Installing rack-ssl (1.3.3)
Installing json (1.7.7)
Installing rdoc (3.12.2)
Installing thor (0.17.0)
Installing railties (3.2.12)
Installing coffee-rails (3.2.2)
Installing decorators (1.0.3)
Installing orm_adapter (0.4.0)
Installing warden (1.2.1)
Installing devise (2.2.3)
Installing ffi (1.0.11)
Installing rubypython (0.5.3)
Installing pygments.rb (0.2.4)
Installing redcarpet (2.0.1)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/username/.rvm/rubies/jruby-1.7.2/bin/jruby extconf.rb
NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS or modify .jrubyrc to enable.
(root) at /Users/username/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/mkmf.rb:8
require at org/jruby/RubyKernel.java:1027
(root) at /Users/username/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:1
(root) at extconf.rb:1
Gem files will remain installed in /Users/username/.rvm/gems/jruby-1.7.2/gems/redcarpet-2.0.1 for inspection.
Results logged to /Users/username/.rvm/gems/jruby-1.7.2/gems/redcarpet-2.0.1/ext/redcarpet/gem_make.out
An error occurred while installing redcarpet (2.0.1), and Bundler cannot
continue.
Make sure that `gem install redcarpet -v '2.0.1'` succeeds before bundling.
I have tried to pass "-Xcext.enabled=true" to JRuby, but it still gives me this error. Please help!
You might want to try kramdown instead of redcarpet. http://kramdown.rubyforge.org/
I'm new to RoR and hit a snag with installing the bcrypt-ruby (v 3.0.1) gem (from gemfile) when following RailsTutorial.org. In looking through other responses on the site, what's not clear to me is if this a is version incompatibility issue, a missing ruby-dev environment, something to do with Xcode, an extra space in the "ruby extconf.rb" or something else. Any suggestions would be greatly appreciated. Thanks.
My environment = OS X v 10.8, Ruby 1.9.3p194 and Rails 3.2.6.
tj$ bundle install
Fetching gem metadata from https://rubygems.org/........
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.3.6)
Using activesupport (3.2.6)
Using builder (3.0.0)
Using activemodel (3.2.6)
Using erubis (2.7.0)
Using journey (1.0.4)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.3)
Using actionpack (3.2.6)
Using mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.6)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.6)
Using activeresource (3.2.6)
Using addressable (2.3.1)
Using annotate (2.5.0)
Installing bcrypt-ruby (3.0.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/Users/tj/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb
creating Makefile
make
sh: make: command not found
Gem files will remain installed in /Users/tj/.rvm/gems/ruby-1.9.3- p194#rails3tutorial2ndEd/gems/bcrypt-ruby-3.0.1 for inspection.
Results logged to /Users/tj/.rvm/gems/ruby-1.9.3-p194#rails3tutorial2ndEd/gems/bcrypt- ruby-3.0.1/ext/mri/gem_make.out
An error occured while installing bcrypt-ruby (3.0.1), and Bundler cannot continue.
Make sure that `gem install bcrypt-ruby -v '3.0.1'` succeeds before bundling.
It looks to me like you don't have make on your system. If you're using a Mac, you need to install the Xcode command line tools.
I'm having problems starting my Rails web server. I try to enter "rails server" in the cmd prompt but I get the following error:
C:\Ruby193\demo>rails server
←[31mCould not find gem 'jquery-rails (>= 0) x86-mingw32' in the gems available
on this machine.←[0m
←[33mRun `bundle install` to install missing gems.←[0m
but whenever I then do a bundle install to install the missing gem, I get this error:
C:\Ruby193\demo>bundle install
Fetching gem metadata from https://rubygems.org/.........
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.2.0)
Using activesupport (3.2.3)
Using builder (3.0.0)
Using activemodel (3.2.3)
Using erubis (2.7.0)
Using journey (1.0.3)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.2)
Using actionpack (3.2.3)
Using mime-types (1.18)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.3)
Using arel (3.0.2)
Using tzinfo (0.3.33)
Using activerecord (3.2.3)
Using activeresource (3.2.3)
Using bundler (1.1.3)
Using coffee-script-source (1.3.1)
Using execjs (1.3.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Installing json (1.6.6) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extensio
.
C:/Ruby193/bin/ruby.exe extconf.rb
creating Makefile
make
'make' is not recognized as an internal or external command,
operable program or batch file.
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.6
6 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.6.6/ext/json/ext/g
nerator/gem_make.out
An error occured while installing json (1.6.6), and Bundler cannot continue.
Make sure that `gem install json -v '1.6.6'` succeeds before bundling.
I then tried to install json without any luck. Any suggestions?
Since you're on Windows, you need to install the Development Kit to be able to build gems with native extensions.
https://github.com/oneclick/rubyinstaller/wiki/development-kit
brandon$ bundle
Fetching source index for http://rubygems.org/
Using rake (0.9.2.2)
Using log4r (1.1.9)
Using XMLCanonicalizer (1.0.1)
Using multi_json (1.0.3)
Using activesupport (3.1.1)
Using builder (3.0.0)
Using i18n (0.6.0)
Using activemodel (3.1.1)
Using erubis (2.7.0)
Using rack (1.3.5)
Using rack-cache (1.1)
Using rack-mount (0.8.3)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.0.3)
Using actionpack (3.1.1)
Using mime-types (1.17.1)
Using polyglot (0.3.2)
Gem::Package::FormatError: corrupt gem (Gem::Package::TarInvalidError: tar is corrupt, name contains null byte) in /Users/brandon/.rbenv/versions/1.9.3-rc1/lib/ruby/gems/1.9.1/cache/treetop-1.4.10.gem
An error occured while installing treetop (1.4.10), and Bundler cannot continue.
Make sure that `gem install treetop -v '1.4.10'` succeeds before bundling.
I have removed ruby and rvm, installed rbenv and reinstalled ruby. This is with 1.9.3-rc1, but the same thing happens in 1.9.2-p290. I have tried removing /Users/brandon/.rbenv/versions/1.9.3-rc1/lib/ruby/gems/1.9.1/cache/ to no avail. I am not sure where to turn at this point.
Also, it doesn't always happen with the treetop gem. Other times it is with activemodel or other gems.
It looks like you are having trouble with the connection (assuming you are behind a firewall).
Try to use other internet connection (like mobile broadband).