Skip to content

Installation: command line version

insane-dreamer edited this page Sep 13, 2010 · 7 revisions

Linux

Run:

sudo gem install ruby-debug19

Note: if you’re using a non-standard Ruby release (pulled from SVN, and/or patched), then instead, run:

sudo gem install ruby-debug19 -- --with-ruby-include=/path/to/ruby

where “/path/to/ruby” is the root path of the Ruby sources (the one with vm_core.h in it).

Windows

Currently, ruby-debug19 only works on Windows using a RubyInstaller installation. Either download a 1.9.x version from here, or, create your own RubyInstaller build from here. Do not install to a path that has a space inside of it (like “C:\Program Files\”).

In both cases, you will also need to download and install the DevKit. If you don’t have 7-Zip, get it here. Extract, and follow the instructions in the INSTALL file. If you had installed Ruby in c:\ruby, and, extracted this kit into there also, then you don’t need to do anything.

Next, run:

gem install ruby-debug19

Note: if you built your own RubyInstaller, then you will need to install with:

gem install ruby-debug19 -- --with-ruby-include=c:/path/to/ruby

where “/path/to/ruby” is the root path of the Ruby sources (the one with vm_core.h in it). Don’t use the Windows-style backslash.

Mac OSX

Install Ruby 1.9.x from MacPorts. Then:

sudo gem1.9 install ruby-debug19

There is also an install script here that will clean out old components first.

If you have Ruby installed with RVM instead, then install gem as follows:

gem install ruby-debug19 -- --with-ruby-include=/path/to/ruby/sources

RVM by default will put the ruby sources in ~/.rvm/src/rubyversion; so the path might be something like: /Users/johndoe/.rvm/src/ruby-1.9.2

Clone this wiki locally