Friday, January 10, 2014

Downgrade Your Rubygems for Ruby 1.9.3 Dependencies

Have you upgraded to Mavericks (OSX 10.9) and installed the latest version of Ruby and Rails and then get a project with Ruby 1.9.3 gem dependencies?

If so, you might have already installed Rubygems version 2+ and run into some bundle install errors.

I hope this post helps you through the muck and mire of old bundler gem dependencies.

TL;DR

To get compatible RubyGems run: gem update --system 1.8.29

Where necessary, run: bundle update GEM_NAME

If you have more issues, please continue reading...

Unable to Build Your Ruby/Rails Project?


$ bundle install 
. . .
Fetching from: https://s3.amazonaws.com/production.s3.rubygems.org/quick/Marshal.4.8/will_paginate-3.0.4.gemspec.rz
HTTP Success
Fetching from: https://rubygems.org/quick/Marshal.4.8/zeus-0.13.3.gemspec.rz
HTTP Redirection
Fetching from: https://s3.amazonaws.com/production.s3.rubygems.org/quick/Marshal.4.8/zeus-0.13.3.gemspec.rz
HTTP Success
Installing rake (10.0.3)
0:  rake (10.0.3) from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/specifications/rake-10.0.3.gemspec

Gem::InstallError: ZenTest requires RubyGems version ~> 1.8. Try 'gem update --system' to update RubyGems itself.
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `ensure_required_rubygems_version_met'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:758:in `pre_install_checks'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:213:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/source/rubygems.rb:95:in `block in install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/rubygems_integration.rb:118:in `preserve_paths'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/source/rubygems.rb:94:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:111:in `block in install_gem_from_spec'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/rubygems_integration.rb:150:in `with_build_args'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:110:in `install_gem_from_spec'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:295:in `block in install_sequentially'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/forwardable.rb:201:in `each'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/forwardable.rb:201:in `each'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:294:in `install_sequentially'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:97:in `run'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:15:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:257:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/command.rb:27:in `run'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor.rb:363:in `dispatch'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/base.rb:438:in `start'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:10:in `start'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `block in '
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `'
/Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `load'
/Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `
' An error occurred while installing ZenTest (4.8.3), and Bundler cannot continue. Make sure that `gem install ZenTest -v '4.8.3'` succeeds before bundling. Bundler::InstallError: An error occurred while installing ZenTest (4.8.3), and Bundler cannot continue. Make sure that `gem install ZenTest -v '4.8.3'` succeeds before bundling. /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:143:in `rescue in install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:106:in `install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:295:in `block in install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:294:in `install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:97:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:15:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:257:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/command.rb:27:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor.rb:363:in `dispatch' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/base.rb:438:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:10:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `block in ' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `load' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `
'

Doing what output suggests fails


  $ gem update --system
Latest version currently installed. Aborting.
  $ gem install ZenTest -v '4.8.3'
ERROR:  Error installing ZenTest:
ZenTest requires RubyGems version ~> 1.8. Try 'gem update --system' to update RubyGems itself.
  $ gem update --system
Latest version currently installed. Aborting.
  $ gem install ZenTest
Fetching: ZenTest-4.9.5.gem (100%)
Successfully installed ZenTest-4.9.5
Installing ri documentation for ZenTest-4.9.5
1 gem installed
  $ gem update --system
Latest version currently installed. Aborting.

Why did that happen?

Likely, it's because you installed rubygems without specifying a version. Here's how I managed to accomplish that:

brew update
brew install rbenv
brew install rbenv-gem-rehash
brew install ruby-build
rbenv install  1.9.3-p484
rbenv global  1.9.3-p484
gem update --system
gem install bundler pg rails thin --no-rdoc --no-ri



RubyGems version 2.2.1 is installed when I installed Ruby version 1.9.3. (Yes. I am an rbenv fan.)

I noticed that I hadn't reloaded my shell, which then caused by system ruby to be managed by rbenv (version 1.9.3).

~ $ rbenv global  1.9.3-p484
~ $ gem update --system
Updating rubygems-update
Fetching: rubygems-update-2.2.1.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
~ $ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]

~ $ rbenv versions
  system
* 1.9.3-p484 (set by /Users/lex/.rbenv/version)
~ $ rbenv whence rackup
~ $ rbenv rehash
~ $ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
~ $ . ~/.bashrc
Current directory: /Users/lex
~ $ ruby -v
ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-darwin13.0.0]


Then when I updated my system gems, it chose to install RubyGems version 2.2.1, which is incompatible with a gem or two in my ruby project.

  $ rbenv global  1.9.3-p484
  $ gem update --system
Updating rubygems-update
Fetching: rubygems-update-2.2.1.gem (100%)
Successfully installed rubygems-update-2.2.1
Installing RubyGems 2.2.1
RubyGems 2.2.1 installed

Downgrade Rubygems

The most recent version of rubygems that will work for a Ruby 1.9.3 dependency is Rubygems version 1.8.29

  $ gem update --system 1.8.29
Updating rubygems-update
Fetching: rubygems-update-1.8.29.gem (100%)
Successfully installed rubygems-update-1.8.29
Installing RubyGems 1.8.29
RubyGems 1.8.29 installed

== 1.8.29 / 2013-11-23

Bug fixes:

* Fixed installation when the LANG environment variable is empty.
* Added DigiCert High Assurance EV Root CA to the default SSL certificates for
  cloudfront.


------------------------------------------------------------------------------

RubyGems installed the following executables:
/Users/lex/.rbenv/versions/1.9.3-p484/bin/gem

RubyGems system software updated
  $ gem --version
1.8.29
  $ bundle install

Need for Ruby Debug Gem Causes another Dependency Related Failure


Installing debugger-linecache (1.2.0)
0:  debugger-linecache (1.2.0) from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/specifications/debugger-linecache-1.2.0.gemspec
Installing debugger-ruby_core_source (1.2.2)
0:  debugger-ruby_core_source (1.2.2) from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/specifications/debugger-ruby_core_source-1.2.2.gemspec

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /Users/lex/.rbenv/versions/1.9.3-p484/bin/ruby extconf.rb 
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
Makefile creation failed
**************************************************************************
No source for ruby-1.9.3-p484 provided with debugger-ruby_core_source gem.
**************************************************************************
*** 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:
 --with-opt-dir
 --without-opt-dir
 --with-opt-include
 --without-opt-include=${opt-dir}/include
 --with-opt-lib
 --without-opt-lib=${opt-dir}/lib
 --with-make-prog
 --without-make-prog
 --srcdir=.
 --curdir
 --ruby=/Users/lex/.rbenv/versions/1.9.3-p484/bin/ruby
 --with-ruby-dir
 --without-ruby-dir
 --with-ruby-include=${ruby-dir}/include
 --with-ruby-lib
 --without-ruby-lib=${ruby-dir}/lib


Gem files will remain installed in /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/debugger-1.6.0 for inspection.
Results logged to /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/debugger-1.6.0/ext/ruby_debug/gem_make.out

/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:564:in `rescue in block in build_extensions'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:540:in `block in build_extensions'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:515:in `each'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:515:in `build_extensions'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:180:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/source/rubygems.rb:95:in `block in install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/rubygems_integration.rb:118:in `preserve_paths'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/source/rubygems.rb:94:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:111:in `block in install_gem_from_spec'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/rubygems_integration.rb:150:in `with_build_args'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:110:in `install_gem_from_spec'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:295:in `block in install_sequentially'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/forwardable.rb:201:in `each'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/forwardable.rb:201:in `each'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:294:in `install_sequentially'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:97:in `run'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:15:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:257:in `install'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/command.rb:27:in `run'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor.rb:363:in `dispatch'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/base.rb:438:in `start'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:10:in `start'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `block in '
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `'
/Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `load'
/Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `
' An error occurred while installing debugger (1.6.0), and Bundler cannot continue. Make sure that `gem install debugger -v '1.6.0'` succeeds before bundling. Bundler::InstallError: An error occurred while installing debugger (1.6.0), and Bundler cannot continue. Make sure that `gem install debugger -v '1.6.0'` succeeds before bundling. /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:143:in `rescue in install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:106:in `install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:295:in `block in install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:294:in `install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:97:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:15:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:257:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/command.rb:27:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor.rb:363:in `dispatch' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/base.rb:438:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:10:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `block in ' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `load' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `
' $ ruby -v ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-darwin13.0.0] $ gem install debugger -v '1.6.0' Building native extensions. This could take a while... ERROR: Error installing debugger: ERROR: Failed to build gem native extension. /Users/lex/.rbenv/versions/1.9.3-p484/bin/ruby extconf.rb checking for rb_method_entry_t.called_id in method.h... no checking for rb_control_frame_t.method_id in method.h... no checking for rb_method_entry_t.called_id in method.h... no checking for rb_control_frame_t.method_id in method.h... no Makefile creation failed ************************************************************************** No source for ruby-1.9.3-p484 provided with debugger-ruby_core_source gem. ************************************************************************** *** 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: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/lex/.rbenv/versions/1.9.3-p484/bin/ruby --with-ruby-dir --without-ruby-dir --with-ruby-include=${ruby-dir}/include --with-ruby-lib --without-ruby-lib=${ruby-dir}/lib Gem files will remain installed in /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/debugger-1.6.0 for inspection. Results logged to /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/debugger-1.6.0/ext/ruby_debug/gem_make.out

Install Ruby with readline

Make a script out of this and run it:

VERSION=1.9.3-p484
brew update
brew install rbenv ruby-build rbenv-vars readline ctags
if [ -n "${ZSH_VERSION:-}" ]; then
  echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.zshrc
else
  echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.bash_profile
fi
eval "$(rbenv init - --no-rehash)" # load rbenv in the current shell
CONFIGURE_OPTS="--disable-install-doc --with-readline-dir=$(brew --prefix readline)" rbenv install $VERSION
rbenv global $VERSION
gem install --no-ri --no-rdoc bundler rbenv-rehash git-up hitch gem-browse gem-ctags cheat awesome_print pry
gem ctags



Next, run this:


$ gem install debugger -- --with-ruby-include=~/.rbenv/versions/1.9.3-p484/include
Fetching: debugger-ruby_core_source-1.3.1.gem (100%)
Fetching: debugger-1.6.5.gem (100%)
Building native extensions.  This could take a while...
Successfully installed debugger-ruby_core_source-1.3.1
Successfully installed debugger-1.6.5
2 gems installed

Yet another dependency error...


Installing launchy (2.2.0)
0:  launchy (2.2.0) from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/specifications/launchy-2.2.0.gemspec

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /Users/lex/.rbenv/versions/1.9.3-p484/bin/ruby extconf.rb 
creating Makefile
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++
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o has no symbols
In file included from ../src/accessors.cc:28:
In file included from ../src/v8.h:60:
In file included from ../src/objects-inl.h:38:
In file included from ../src/elements.h:33:
In file included from ../src/heap.h:41:
../src/store-buffer.h:229:9: error: private field 'heap_' is not used [-Werror,-Wunused-private-field]
  Heap* heap_;
        ^
1 error generated.
make[1]: *** [/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o] Error 1
make: *** [x64.release] Error 2
/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/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/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:35:in `each'
 from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:35:in `verify_installation!'
 from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:26:in `install!'
 from extconf.rb:7:in `
' GYP_GENERATORS=make \ build/gyp/gyp --generator-output="out" build/all.gyp \ -Ibuild/standalone.gypi --depth=. \ -Dv8_target_arch=x64 \ -S.x64 -Dv8_can_use_vfp_instructions=true CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/diy-fp.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fast-dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fixed-dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/once.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparse-data.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser-api.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/scanner.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/strtod.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/token.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/unicode.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/utils.o LIBTOOL-STATIC /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/libpreparser_lib.a CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser/preparser/preparser-process.o LINK(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/preparser CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o Gem files will remain installed in /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13 for inspection. Results logged to /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/gem_make.out /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rubygems/installer.rb:562:in `rescue in block in build_extensions' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rubygems/installer.rb:540:in `block in build_extensions' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rubygems/installer.rb:515:in `each' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rubygems/installer.rb:515:in `build_extensions' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/rubygems/installer.rb:180:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/source/rubygems.rb:95:in `block in install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/rubygems_integration.rb:118:in `preserve_paths' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/source/rubygems.rb:94:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:111:in `block in install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/rubygems_integration.rb:150:in `with_build_args' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:110:in `install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:295:in `block in install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/forwardable.rb:201:in `each' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/forwardable.rb:201:in `each' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:294:in `install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:97:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:15:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:257:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/command.rb:27:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor.rb:363:in `dispatch' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/base.rb:438:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:10:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `block in ' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `load' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `
' 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. Bundler::InstallError: 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. /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:143:in `rescue in install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:106:in `install_gem_from_spec' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:295:in `block in install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:294:in `install_sequentially' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:97:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/installer.rb:15:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:257:in `install' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/command.rb:27:in `run' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor.rb:363:in `dispatch' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/vendor/thor/base.rb:438:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/cli.rb:10:in `start' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `block in ' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors' /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/bundler-1.5.1/bin/bundle:22:in `' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `load' /Users/lex/.rbenv/versions/1.9.3-p484/bin/bundle:23:in `
' $ gem install libv8 -v '3.11.8.13' Building native extensions. This could take a while... ERROR: Error installing libv8: ERROR: Failed to build gem native extension. /Users/lex/.rbenv/versions/1.9.3-p484/bin/ruby extconf.rb creating Makefile 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++ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o has no symbols In file included from ../src/accessors.cc:28: In file included from ../src/v8.h:60: In file included from ../src/objects-inl.h:38: In file included from ../src/elements.h:33: In file included from ../src/heap.h:41: ../src/store-buffer.h:229:9: error: private field 'heap_' is not used [-Werror,-Wunused-private-field] Heap* heap_; ^ 1 error generated. make[1]: *** [/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o] Error 1 make: *** [x64.release] Error 2 /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/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/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:35:in `each' from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:35:in `verify_installation!' from /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/location.rb:26:in `install!' from extconf.rb:7:in `
' GYP_GENERATORS=make \ build/gyp/gyp --generator-output="out" build/all.gyp \ -Ibuild/standalone.gypi --depth=. \ -Dv8_target_arch=x64 \ -S.x64 -Dv8_can_use_vfp_instructions=true CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/diy-fp.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fast-dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fixed-dtoa.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/once.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparse-data.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser-api.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/scanner.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/strtod.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/token.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/unicode.o CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser_lib/src/utils.o LIBTOOL-STATIC /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/libpreparser_lib.a CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/preparser/preparser/preparser-process.o LINK(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/preparser CXX(target) /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o Gem files will remain installed in /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13 for inspection. Results logged to /Users/lex/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.13/ext/libv8/gem_make.out $ gem install libv8 -v '3.16.14.3' -- --with-system-v8 Fetching: libv8-3.16.14.3-x86_64-darwin-13.gem (100%) Successfully installed libv8-3.16.14.3-x86_64-darwin-13 1 gem installed Installing ri documentation for libv8-3.16.14.3-x86_64-darwin-13... Installing RDoc documentation for libv8-3.16.14.3-x86_64-darwin-13... $ bundle config build.libv8 --with-system-v8 $ bundle install

Keep all versions at level specified in Gemfile.lock and use the "bundle update GEM_NAME" command to get the the newest gem version of therubyracer.


$ bundle update therubyracer
Your Gemfile lists the gem launchy (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Fetching from: https://rubygems.org/api/v1/dependencies
HTTP Redirection
Fetching from: https://bundler.rubygems.org/api/v1/dependencies
HTTP Success
. . .

References

http://rubygems.org/gems/rubygems-update/versions
http://bundler.io/v1.3/bundle_config.html
http://cache.ruby-lang.org/pub/ruby/

No comments:

Post a Comment