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/
Related
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.
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 have been running Rails 3.2.3 everything ran fine. Last night I did a bundle update to update every thing in my Gemfile and here's the update log.
Updating git://github.com/stefants/negative-captcha.git
Fetching gem metadata from http://rubygems.org/......
Fetching gem metadata from http://rubygems.org/..
Using rake (0.9.2.2)
Using i18n (0.6.0)
Installing multi_json (1.3.4)
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)
Installing sprockets (2.1.3)
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)
Installing tzinfo (0.3.33)
Using activerecord (3.2.3)
Using activeresource (3.2.3)
Installing addressable (2.2.8)
Using bundler (1.1.3)
Using rack-ssl (1.3.2)
Installing json (1.7.1) with native extensions
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.2.3)
Using rails (3.2.3)
Using awesome_nested_fields (0.6.0)
Using xml-simple (1.1.1)
Using aws-s3 (0.6.2)
Using bcrypt-ruby (3.0.1)
Installing bson (1.6.2)
Installing bson_ext (1.6.2) with native extensions
Installing business_time (0.6.1)
Using cancan (1.6.7)
Installing carrierwave (0.6.2)
Installing mongo (1.6.2)
Installing mongoid (2.4.9)
Installing carrierwave-mongoid (0.2.0)
Using chronic (0.6.7)
Installing cocoon (1.0.20)
Installing coderay (1.0.6)
Installing coffee-script-source (1.3.1)
Installing execjs (1.3.2)
Using coffee-script (2.2.0)
Using coffee-rails (3.2.2)
Using coffeebeans (1.0.1)
Using datejs-rails (1.1.0)
Installing delayed_job (3.0.2)
Using delayed_job_mongoid (1.0.8)
Using orm_adapter (0.0.7)
Using warden (1.1.1)
Using devise (2.0.4)
Using ejs (1.0.0)
Using eventmachine (0.12.10)
Using em-websocket (0.3.6)
Installing excon (0.13.4)
Using faker (1.0.1)
Using multipart-post (1.1.5)
Using faraday (0.7.6)
Using ffi (1.0.11)
Using formatador (0.2.1)
Using net-ssh (2.3.0)
Using net-scp (1.0.4)
Using nokogiri (1.5.2)
Using ruby-hmac (0.4.0)
Using fog (1.3.1)
Using git (1.2.5)
Using term-ansicolor (1.0.7)
Installing grizzled-rails-logger (0.1.3)
Using rb-appscript (0.6.1)
Using growl_notify (0.0.3)
Installing guard (1.0.2)
Using guard-livereload (0.4.2)
Using hirb (0.6.2)
Using humane-rails (2.8.0.0.1.2)
Using jeweler (1.8.3)
Installing jquery-rails (2.0.2)
Installing jquery-ui-rails (0.4.0)
Using kaminari (0.13.0)
Using knockout-rails (1.0.1)
Using method_source (0.7.1)
Using momentjs-rails (1.5.0)
Using mongoid-data_table (1.3.3)
Using mongoid-eager-loading (0.3.1)
Using negative-captcha (0.1.0) from git://github.com/stefants/negative-captcha.git (at master)
Using nifty-generators (0.4.6)
Installing oauth (0.4.6)
Using oauth2 (0.5.2)
Using typhoeus (0.3.3)
Using panda (1.5.0)
Using slop (2.4.4)
Installing pry (0.9.9.4)
Using pry-rails (0.1.6)
Installing rails-backbone (0.7.2)
Using rb-fchange (0.0.5)
Installing rb-fsevent (0.9.1)
Using rb-inotify (0.8.8)
Using rest-client (1.6.7)
Installing sass (3.1.17)
Using sass-rails (3.2.5)
Installing simple_form (2.0.2)
Installing simple_oauth (0.1.7)
Using stripe (1.6.3)
Installing stylus-source (0.26.0)
Installing stylus (0.5.1)
Using uglifier (1.2.4)
Using underscore-rails (1.3.1)
Using webshims-rails (0.1)
Using wirble (0.1.3)
Using youtube_it (2.1.4)
Using zero-clipboard-rails (1.0.1)
Your bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed.
Then I restarted the server and now Sprockets::FileNotFound errors are thrown for some #import "file.css" line in my sass files.
I did some research on the Sprockets gem, I found that the current version is 2.4.2. But my bundle update updated the sprockets to 2.1.3. Is this what is out there for your Rails apps, too, that the sprockets used by Rails is a few versions behind Github's? -- And how should I approach this Sprockets::FileNotFound problem?
APPEND: I just also saw that the sprockets in the gemfile.lock to be of version 2.1.2. yet bundle show sprockets says 2.1.3.
Thank you
try to remove Gemfile.lock (backup first) and run bundle install once again
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).