Skip to content

Instantly share code, notes, and snippets.

@phillipkoebbe
Created December 11, 2011 01:31
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • 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
@googya
Copy link

googya commented Jan 7, 2012

it works well! nice work!

@mdoroudi
Copy link

I still have problem with this, pretty much installing the ruby-debug-base19-0.11.26.gem doesn't work. I filed a gist for it, any ideas?
https://gist.github.com/1646085

@phillipkoebbe
Copy link
Author

Hi mdoroudi,

I don't have any ideas. Even though the above method seemed to work for me, I had other problems (can't remember them now) with 1.9.3 and just went back to 1.9.2. If you figure it out, please do share your solution in the comments of your gist so it will help someone else.

@mdoroudi
Copy link

mdoroudi commented Jan 20, 2012 via email

@ernsheong
Copy link

worked, thanks!

@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