Error installing rubygems (DL is deprecated) - ruby-on-rails

Hello i'm tring to install:
gem 'therubyracer', '~> 0.12.2'
gem 'libv8', '~> 3.16.14.7'
in my application ruby (on windows)
when i execute the command
bundle install
the terminal show me this error:
C:\Sites\bootstrap>bundle install
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/............
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.2
Using minitest 5.6.1
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.1.8
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.8
Using rack 1.5.3
Using rack-test 0.6.3
Using actionpack 4.1.8
Using mime-types 2.5
Using mail 2.6.3
Using actionmailer 4.1.8
Using activemodel 4.1.8
Using arel 5.0.1.20140414130214
Using activerecord 4.1.8
Using bundler 1.7.7
Using coffee-script-source 1.9.1.1
Using execjs 2.5.2
Using coffee-script 2.4.1
Using thor 0.19.1
Using railties 4.1.8
Using coffee-rails 4.0.1
Using commonjs 0.2.7
Using hike 1.2.3
Using multi_json 1.11.0
Using jbuilder 2.2.16
Using jquery-rails 3.1.2
Using less 2.6.0
Using tilt 1.4.1
Using sprockets 2.12.3
Using less-rails 2.7.0
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe -r ./siteconf20150522-5296-1qzvvgb.
rb extconf.rb
creating Makefile
Impossibile trovare il percorso specificato.
Impossibile trovare il percorso specificato.
Impossibile trovare il percorso specificato.
C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.7/ext/libv8/b
uilder.rb:68:in `setup_python!': libv8 requires python 2 to be installed in orde
r to build, but it is currently not available (RuntimeError)
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.
7/ext/libv8/builder.rb:52:in `block in build_libv8!'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.
7/ext/libv8/builder.rb:49:in `chdir'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.
7/ext/libv8/builder.rb:49:in `build_libv8!'
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.
7/ext/libv8/location.rb:24:in `install!'
from extconf.rb:7:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1
.0/gems/libv8-3.16.14.7 for inspection.
Results logged to C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86
-mingw32/2.1.0/libv8-3.16.14.7/gem_make.out
An error occurred while installing libv8 (3.16.14.7), and Bundler cannot
continue.
Make sure that `gem install libv8 -v '3.16.14.7'` succeeds before bundling.
the same error appears when i try to execute the gem command for the installation of libv8 from my terminal:
gem install libv8 -v '3.16.14.7'
How can i fix this issue?

Log content the answer.
Failed to build gem native extension.
....
libv8 requires python 2 to be installed in order to build, but it is currently not available (RuntimeError)
You need to install python 2 before you can use this gem.

Path of least resistance is to install node.js and modify your gemfile to this.
gem 'therubyracer', platform: :ruby
Then it should install just fine. This is how I do it, we use Windows to develop in our environment.

Related

Gem::Ext::BuildError: ERROR: Failed to build gem native extension on json 1.8.6 and sqlite3 1.3.13

I am created new application and then run in command line bundle show so show this error :-
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies............................................
Using rake 12.0.0
Using i18n 0.8.1
Using minitest 4.7.5
Using multi_json 1.12.1
Using thread_safe 0.3.6
Using tzinfo 0.3.53
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.5
Using mime-types-data 3.2016.0521
Using activerecord-deprecated_finders 1.0.4
Using arel 4.0.2
Using bundler 1.11.2
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using thor 0.19.4
Using hike 1.2.3
Installing json 1.8.6 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /tmp/bundler20170330-4696-17s1gfujson-1.8.6/gems/json-1.8.6/ext/json/ext/generator
/usr/bin/ruby2.3 -r ./siteconf20170330-4696-1cm0oql.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /tmp/bundler20170330-4696-17s1gfujson-1.8.6/gems/json-1.8.6 for inspection.
Results logged to /tmp/bundler20170330-4696-17s1gfujson-1.8.6/extensions/x86_64-linux/2.3.0/json-1.8.6/gem_make.out
Using tilt 1.4.1
Using rdoc 4.3.0
Using sass 3.2.19
Installing sqlite3 1.3.13 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /tmp/bundler20170330-4696-5gxxursqlite3-1.3.13/gems/sqlite3-1.3.13/ext/sqlite3
/usr/bin/ruby2.3 -r ./siteconf20170330-4696-1s2vax3.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /tmp/bundler20170330-4696-5gxxursqlite3-1.3.13/gems/sqlite3-1.3.13 for inspection.
Results logged to /tmp/bundler20170330-4696-5gxxursqlite3-1.3.13/extensions/x86_64-linux/2.3.0/sqlite3-1.3.13/gem_make.out
Using turbolinks-source 5.0.0
Using activesupport 4.0.13
Using rack-test 0.6.3
Using mime-types 3.1
Using coffee-script 2.4.1
Using uglifier 3.1.11
An error occurred while installing json (1.8.6), and Bundler cannot continue.
Make sure that `gem install json -v '1.8.6'` succeeds before bundling.
I am use this all version :-
Ruby version:- ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
Rails version:- Rails 4.0.13
Gem version:- 2.5.1
Bundle version:- Bundler version 1.14.6
Mongo version:- MongoDB shell version: 2.4.14
Please tell us! How to solve this problem? I am search so many solution but does not find out suitable solutions.
apt install ruby-dev
or
apt-get install ruby-dev
as per github post here, have you tried running the following command to fix it:
sudo apt-get install libgmp3-dev
I was trying to set up Ruby/Rails on a Mint 18.1 and "apt-get install libgmp3-dev" did not help but "apt-get install ruby-dev"seemed to fix the problem. Running "bundle-install" after that went off without a hitch.

Native Extension Error After Installing Git & Heroku

I've been searching for a solution since yesterday and everything I've tried leads to a dead end.
New to RoR and walking through tutorials. Everything was working fine, until I started setting up GIT and Heroku. I had to install jruby_windows and heroku-toolbelt, and I believe this botched things up.
Now when I run bundle install I receive the following output errors
\BookReview>bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies........
Using rake 11.2.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.9.0
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using nokogiri 1.6.8
Using rack 1.6.4
Using mime-types-data 3.2016.0521
Using arel 6.0.3
Using execjs 2.7.0
Using bcrypt 3.1.11
Using bcrypt-ruby 3.0.1
Using debug_inspector 0.0.2
Using sass 3.4.22
Using bundler 1.12.5
Installing byebug 9.0.5 with native extensions
C:/jruby-9.0.0.0/lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb:39: warning: Tempfile#unlink or delete called on open file; ignoring
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/jruby-9.0.0.0/bin/jruby.exe -r ./siteconf20160621-9244-az7xx.rb extconf.rb
NotImplementedError: C extensions are not supported
<top> at C:/jruby-9.0.0.0/lib/ruby/stdlib/mkmf.rb:1
require at org/jruby/RubyKernel.java:940
(root) at C:/jruby-9.0.0.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
<top> at extconf.rb:1
extconf failed, exit code 1
Gem files will remain installed in C:/jruby-9.0.0.0/lib/ruby/gems/shared/gems/byebug-9.0.5 for inspection.
Results logged to C:/jruby-9.0.0.0/lib/ruby/gems/shared/extensions/universal-java-1.8/2.2.0/byebug-9.0.5/gem_make.out
Using coffee-script-source 1.10.0
Using thor 0.19.1
Using concurrent-ruby 1.0.2
Using orm_adapter 0.5.0
Using multi_json 1.12.1
Using mimemagic 0.3.0
Installing mysql2 0.4.4 with native extensions
C:/jruby-9.0.0.0/lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb:39: warning: Tempfile#unlink or delete called on open file; ignoring
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/jruby-9.0.0.0/bin/jruby.exe -r ./siteconf20160621-9244-13ylh37.rb extconf.rb
NotImplementedError: C extensions are not supported
<top> at C:/jruby-9.0.0.0/lib/ruby/stdlib/mkmf.rb:1
require at org/jruby/RubyKernel.java:940
(root) at C:/jruby-9.0.0.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
<top> at extconf.rb:2
extconf failed, exit code 1
Gem files will remain installed in C:/jruby-9.0.0.0/lib/ruby/gems/shared/gems/mysql2-0.4.4 for inspection.
Results logged to C:/jruby-9.0.0.0/lib/ruby/gems/shared/extensions/universal-java-1.8/2.2.0/mysql2-0.4.4/gem_make.out
Using raty_ratings 1.2.0
Using tilt 2.0.5
Using rdoc 4.2.2
Using tzinfo 1.2.2
Using loofah 2.0.3
Using rack-test 0.6.3
Using warden 1.2.6
Using mime-types 3.1
Using autoprefixer-rails 6.3.6.2
Using uglifier 3.0.0
Installing binding_of_caller 0.7.2 with native extensions
C:/jruby-9.0.0.0/lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb:39: warning: Tempfile#unlink or delete called on open file; ignoring
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/jruby-9.0.0.0/bin/jruby.exe -r ./siteconf20160621-9244-wni27b.rb extconf.rb
NotImplementedError: C extensions are not supported
<top> at C:/jruby-9.0.0.0/lib/ruby/stdlib/mkmf.rb:1
require at org/jruby/RubyKernel.java:940
(root) at C:/jruby-9.0.0.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
<top> at extconf.rb:19
extconf failed, exit code 1
Gem files will remain installed in C:/jruby-9.0.0.0/lib/ruby/gems/shared/gems/binding_of_caller-0.7.2 for inspection.
Results logged to C:/jruby-9.0.0.0/lib/ruby/gems/shared/extensions/universal-java-1.8/2.2.0/binding_of_caller-0.7.2/gem_make.out
An error occurred while installing byebug (9.0.5), and Bundler cannot continue.
Make sure that `gem install byebug -v '9.0.5'` succeeds before bundling.
This probably isnt an official fix. I gave up on trying different things, so I ended up reinstalling by using the railsinstaller. After setting things up again I am able to bundle install with no errors.

Bundle install failure for an existing ruby app. I suspect libv8

I have the rather unfortunate position of inheriting a rails app from a previous developer. I have the joy of both trying to learn ruby and picking apart the old code to fix what's broken. I don't have any means for contacting the former developer, nor do I have much knowledge of the app other than that it uses ruby on rails. I'm much more familiar with the .net environment, so getting RoR up and running is proving to be a bit of a challenge.
I'm simply trying to clone their code repo locally and try to run their code on a local rails server. I was able to clone, the next thing I tried was to run bundle install and I got this massive block of text that I can't make heads or tails of.
Massive wall of text below
Justin#JVB-MBP /c/Sites/mymouthworks (master)
$ bundle install
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Using rake 10.1.1
Using i18n 0.6.9
Using minitest 4.7.5
Using multi_json 1.8.4
Using atomic 1.1.14
Using thread_safe 0.1.3
Using tzinfo 0.3.38
Using activesupport 4.0.2
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.0.2
Using mime-types 1.25.1
Using polyglot 0.3.4
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 4.0.2
Using activemodel 4.0.2
Using activerecord-deprecated_finders 1.0.3
Using arel 4.0.2
Using activerecord 4.0.2
Using bcrypt-ruby 3.1.2
Using sass 3.2.14
Using bootstrap-sass 3.1.1.1
Using will_paginate 3.0.4
Using bootstrap-will_paginate 0.0.9
Using bundler 1.7.7
Using chunky_png 1.3.0
Using coffee-script-source 1.7.0
Using execjs 2.0.2
Using coffee-script 2.2.0
Using thor 0.18.1
Using railties 4.0.2
Using coffee-rails 4.0.1
Using commonjs 0.2.7
Using fssm 0.2.10
Using compass 0.12.3
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.11.0
Using compass-rails 1.1.7
Using date_validator 0.7.0
Using jbuilder 1.5.3
Using jquery-rails 3.1.0
Using json 1.8.1
Using less 2.4.0
Using less-rails 2.4.2
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
c:/RailsInstaller/Ruby2.1.0/bin/ruby.exe -r ./siteconf20150212-3448-1yjlu6v.
rb extconf.rb
creating Makefile
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8 3.16.14.3/ext/libv8/builder.rb:58:in `setup_python!': libv8 requires python 2 to be installed in order to build, but it is currently not available (RuntimeError)
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.3/ext/libv8/builder.rb:42:in `block in build_libv8!'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.3/ext/libv8/builder.rb:40:in `chdir'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.3/ext/libv8/builder.rb:40:in `build_libv8!'
from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.3/ext/libv8/location.rb:24:in `install!'
from extconf.rb:7:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.3 for inspection.
Results logged to c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/libv8-3.16.14.3/gem_make.out
An error occurred while installing libv8 (3.16.14.3), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.16.14.3'` succeeds before bundling.
Justin#JVB-MBP /c/Sites/mymouthworks (master)
$
To me, it looks like there's an issue with libv8, but there is also a warning about python 2 not being installed, which it is, along with being added to the path variable. I should add my dev environment is 64-bit Windows 8.1. Has anyone got this working?
Thank you.
You are correct that libv8 did not successfully install.
Bundler will not continue until that step succeeds. You need to run:
gem install libv8 -v '3.16.14.3'
A nice feature about Bundler is that it gives you the command you need to run in order to proceed. If this command fails you should get a better error message to work with.

ERROR: Failed to build gem native extension message (Linux) installing rubygems

I'm going through the rails tutorial atm. (I'm a beginner so bear with me.)
As you can see below, when I try and install the rubygems using 'bundle install', I get the error message saying that I need to make sure 'gem install json -v '1.8.1' succeeds before I try again.
But when I try and sudo gem install json -v '1.8.1', I get the
.
If I'm asking a stupid question, or if I've left out any necessary info, just let me know. I'm new to this -- CodeAcademy & RailsForZombies are the extent of my knowledge.
ben#ben-X551CA ~/first_rails_project/bens_first_app $ bundle install
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Using rake 10.3.2
Using i18n 0.6.11
Using minitest 4.7.5
Using multi_json 1.10.1
Using thread_safe 0.3.4
Using tzinfo 0.3.41
Using activesupport 4.0.8
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.0.8
Using mime-types 1.25.1
Using polyglot 0.3.5
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 4.0.8
Using activemodel 4.0.8
Using activerecord-deprecated_finders 1.0.3
Using arel 4.0.2
Using activerecord 4.0.8
Using bundler 1.7.2
Using coffee-script-source 1.8.0
Using execjs 2.2.1
Using coffee-script 2.3.0
Using thor 0.19.1
Using railties 4.0.8
Using coffee-rails 4.0.1
Using hike 1.2.3
Using jbuilder 1.0.2
Using jquery-rails 3.0.4
Your user account isn't allowed to install to the system Rubygems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to Rubygems using sudo.
Password:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from extconf.rb:1:in `'
Gem files will remain installed in /tmp/bundler20140908-2757-18q0kfn/json-1.8.1/gems/json-1.8.1 for inspection.
Results logged to /tmp/bundler20140908-2757-18q0kfn/json-1.8.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that gem install json -v '1.8.1' succeeds before bundling.
ben#ben-X551CA ~/first_rails_project/bens_first_app $ gem install json -v '1.8.1'
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /var/lib/gems/1.9.1 directory.
ben#ben-X551CA ~/first_rails_project/bens_first_app $ sudo gem install json -v '1.8.1'
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- mkmf (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from extconf.rb:1:in `'
Gem files will remain installed in /var/lib/gems/1.9.1/gems/json-1.8.1 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
ben#ben-X551CA ~/first_rails_project/bens_first_app $
So running this worked for me:
sudo apt-get install ruby1.9.1-dev
Suppose the -dev package was needed?
If #BenLawton answer doesn't work try this (work for me on Ubuntu 16.04):
sudo apt-get install ruby-full
https://www.ruby-lang.org/en/documentation/installation/#apt

bundle install does not complete execution. It gets stuck in the middle

When I ran bundle install, it gets stuck towards the end.
Here's my bundle console output
!  ~/r/mangoweb   master  bundle install Sun Jul 27 12:45:28 IST 2014
Updating git://github.com/mongoid/mongoid.git
Updating git://github.com/Rameshv/mongoid-paranoia.git
Updating git://github.com/resque/resque.git
Updating git://github.com/zapnap/resque_mailer.git
Updating git://github.com/michaeldv/awesome_print.git
Updating https://github.com/stripe/stripe-ruby
Updating git://github.com/thedarkone/rails-dev-boost.git
Updating git#github.com:capistrano/rvm.git
Fetching gem metadata from http://rubygems.org/.......
Fetching additional metadata from http://rubygems.org/..
Resolving dependencies...
Using rake 10.3.2
Using i18n 0.6.11
Using minitest 4.7.5
Using multi_json 1.10.1
Using thread_safe 0.3.4
Using tzinfo 0.3.40
Using activesupport 4.0.2
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.0.2
Using mime-types 1.25.1
Using polyglot 0.3.5
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 4.0.2
Using activemodel 4.0.2
Using activerecord-deprecated_finders 1.0.3
Using arel 4.0.2
Using activerecord 4.0.2
Using addressable 2.3.6
Using awesome_print 1.2.0 from git://github.com/michaeldv/awesome_print.git (at v2)
Using json 1.8.1
Using mini_portile 0.6.0
Using nokogiri 1.6.3.1
Using aws-sdk 1.49.0
Using bcrypt 3.1.7
Using bcrypt-ruby 3.1.5
Using coderay 1.1.0
Using better_errors 1.1.0
Using bson 2.3.0
Using bundler 1.6.1
Using colorize 0.7.3
Using net-ssh 2.9.1
Using net-scp 1.2.1
Using sshkit 1.5.1
Using capistrano 3.0.1
Using capistrano-bundler 1.1.2
Using capistrano-rails 1.1.0
Using capistrano-rvm 0.1.1 from git#github.com:capistrano/rvm.git (at master)
Using carrierwave 0.10.0
Using connection_pool 2.0.0
Using optionable 0.2.0
Using moped 2.0.0
Using origin 1.1.0
Using mongoid 4.0.0.alpha1 from git://github.com/mongoid/mongoid.git (at v4.0.0.alpha1)
Using mongoid-grid_fs 2.1.0
Using carrierwave-mongoid 0.7.1
Using timers 1.1.0
Using celluloid 0.15.2
Using choice 0.1.6
Using coffee-script-source 1.7.1
Using execjs 2.2.1
Using coffee-script 2.3.0
Using thor 0.19.1
Using railties 4.0.2
Using coffee-rails 4.0.1
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.11.0
Using sprockets-rails 2.0.1
Using rails 4.0.2
Using commands 0.2.1
Using css_parser 1.3.5
Using daemon_controller 1.2.0
Using daemons 1.1.9
Using orm_adapter 0.5.0
Using warden 1.2.3
Using devise 3.1.0
Using ejs 1.1.1
Using eventmachine 1.0.3
Using http_parser.rb 0.6.0
Using em-websocket 0.5.1
Using excon 0.38.0
Using factory_girl 4.4.0
Using faker 1.4.2
Using multipart-post 2.0.0
Using faraday 0.9.0
Using ffi 1.9.3
Using formatador 0.2.5
Using fog-core 1.23.0
Using fog-json 1.0.0
Using inflecto 0.0.2
Using fog-brightbox 0.1.1
Using fog-softlayer 0.3.11
Using ipaddress 0.8.0
Using fog 1.23.0
Using font-awesome-rails 4.1.0.0
Using rb-fsevent 0.9.4
Using rb-inotify 0.9.5
Using listen 2.7.9
Using lumberjack 1.0.9
Using method_source 0.8.2
Using slop 3.6.0
Using pry 0.10.0
Using guard 2.6.1
Using guard-livereload 2.3.0
Using haml 4.0.5
Using hashie 3.2.0
Using hirb 0.7.2
Using hpricot 0.8.6
Using htmlentities 4.3.2
Using jbuilder 1.5.3
Using jquery-rails 3.1.1
Using jwt 1.0.0
Using kaminari 0.16.1
Using launchy 2.4.2
Using letter_opener 1.2.0
I let it run for more than 30 minutes, but it still didn't get out of the loop. When I forced killed this process, I got an error saying that libv8 is not installed. I tried running this manually, but that didn't work either.
SystemExit: exit
An error occurred while installing libv8 (3.16.14.3), and Bundler cannot continue.
Make sure that `gem install libv8 -v '3.16.14.3'` succeeds before bundling.
I assumed that my settings are corrupt, and did rvm implode and tried setting up everything from scratch, but I was stuck with the same issue. I also ran a gem update --system just to check if everything upto date. Even that didn't help.
Here are some details,
Bundle version : 1.6.`
Ruby ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin12.5.0]
Not sure what is the issue. Am I missing something here?
Edit 1
This is the error I'm getting while installing libv8gem
Fetching: libv8-3.16.14.3.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing libv8:
ERROR: Failed to build gem native extension.
/Users/skmvasu/.rvm/rubies/ruby-2.0.0-p451/bin/ruby extconf.rb
creating Makefile
Compiling v8 for x64
Using python 2.7.5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
Using compiler: g++
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Unable to find a compiler officially supported by v8.
It is recommended to use GCC v4.4 or higher
../src/cached-powers.cc:136:18: error: unused variable 'kCachedPowersLength' [-Werror,-Wunused-const-variable]
static const int kCachedPowersLength = ARRAY_SIZE(kCachedPowers);
^
1 error generated.
make[1]: *** [/Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o] Error 1
make: *** [x64.release] Error 2
/Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/libv8-3.16.14.3/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound)
from /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/libv8-3.16.14.3/ext/libv8/location.rb:35:in `each'
from /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/libv8-3.16.14.3/ext/libv8/location.rb:35:in `verify_installation!'
from /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/libv8-3.16.14.3/ext/libv8/location.rb:26:in `install!'
from extconf.rb:7:in `<main>'
GYP_GENERATORS=make \
build/gyp/gyp --generator-output="out" build/all.gyp \
-Ibuild/standalone.gypi --depth=. \
-Dv8_target_arch=x64 \
-S.x64 -Dv8_enable_backtrace=1 -Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2 -Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3
CXX(target) /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o
CXX(target) /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o
CXX(target) /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o
CXX(target) /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o
CXX(target) /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/libv8-3.16.14.3/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o
extconf failed, exit code 1
Gem files will remain installed in /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/gems/libv8-3.16.14.3 for inspection.
Results logged to /Users/skmvasu/.rvm/gems/ruby-2.0.0-p451/extensions/x86_64-darwin-12/2.0.0-static/libv8-3.16.14.3/gem_make.out
Edit 2
I finally found the problem. My system updated to the latest version of Mavericks 10.9.4. There is some issue with a mac update and libv8 gem, that I don't fully understand, but I guess it has something to do with the old ruby setup. So, did an rvm implode and then installed it from scratch, and also reinstalled ruby. After that everything worked like a charm. If anyone is facing the same issue take a look at this thread https://github.com/cowboyd/libv8/issues/120. This might help shed some light to this issue.
libv8 is a C-binded lib, it's not a RVM issue, it's almost certainly a dependency issue in your system. Try googling for "install libv8 under macos" or try one of the alternative JS interpreters as explained on https://github.com/sstephenson/execjs (you should actually have this link in Gemfile by default)
The error is referencing a missing GCC compiler. It looks like you might be running OS X and Xcode. According to this answer How to use/install gcc on Mac OS X 10.8 / Xcode 4.4 you may have to tell Xcopy specifically that you want the command line tools installed.
Ultimately just go to the "Preferences" menu in Xcode, choose "Downloads", and then select "Command Line Tools" from the list to install them.

Resources