Skip to content

Instantly share code, notes, and snippets.

@phillipkoebbe
Created December 11, 2011 01:31
Show Gist options
  • Save phillipkoebbe/1457544 to your computer and use it in GitHub Desktop.
Save phillipkoebbe/1457544 to your computer and use it in GitHub Desktop.
Installing ruby-debug19 on ruby 1.9.3-p0 on Mac OS X Lion 10.7.2 with Xcode 4.2.1
# assumes 1.9.3-p0 is already installed in RVM (1.9.2) and you are in an empty gemset
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
gem install rake
gem install archive-tar-minitar
gem install ruby_core_source
gem install columnize
gem install linecache19-0.5.13.gem -- --with-ruby-include="$rvm_path/src/`rvm tools strings`"
gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include="$rvm_path/src/`rvm tools strings`"
gem install ruby-debug19
@capnslipp
Copy link

Immensely useful— just re-ran the two --with-ruby-include lines after a Ruby update and everything worked à la magique.

Merci.

@skull-squadron
Copy link

Good job.

Also, seems they're on gemfury now:

Manual install

gem sources -a https://gems.gemfury.com/8n1rdTK8pezvcsyVmmgJ/   # creates ~/.gemrc
gem install ruby-debug19 -- --with-ruby-include="$rvm_path/src/`rvm tools strings`" # -- --with... for RVM only

Or with a Gemfile

source ...
source 'https://gems.gemfury.com/8n1rdTK8pezvcsyVmmgJ/' # for working pre-release ruby-debug19
...
gem 'ruby-debug19', :platforms => [ :ruby_19, :mingw_19 ]

... and to keep the build flag on Bundler ( only needed when using RVM ):

bundle config build.ruby-debug-base19 --with-ruby-include="$rvm_path/src/`rvm tools strings`" # creates ~/.bundle/config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment