Skip to content

Installation: command line version

lribeiro edited this page May 1, 2011 · 7 revisions

Installation: command-line version

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 MacPorts. Then:

sudo port install rb19-debug

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

ruby-debug and RVM

If you have Ruby installed with RVM you can install gem as follows:

gem install ruby-debug19 -- --with-ruby-include="$rvm_path/src/$(rvm tools identifier)/"

This will automatically locate the source files for your version of Ruby and your gemset. See here for more info.