Skip to content

Instantly share code, notes, and snippets.

@titanous
Created October 7, 2011 16:20
Show Gist options
  • Save titanous/1270704 to your computer and use it in GitHub Desktop.
Save titanous/1270704 to your computer and use it in GitHub Desktop.
Ruby 1.9.3-p0 with ruby-debug19

Ruby 1.9.3-p0 with ruby-debug19

Ruby 1.9.3-p0 requires a minor patch to make ruby-debug19 work. If you have ruby-build and rbenv installed, these scripts will install ruby-1.9.3-p0.

curl https://raw.github.com/gist/1270704/install-ruby-1.9.3-p0.sh | sh
build_package_ruby_with_current_thread_patch() {
local package_name="$1"
{ git apply <( curl https://github.com/ruby/ruby/pull/47.diff )
autoconf
./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS
make -j 8
make install
} >&4 2>&1
}
install_package "yaml-0.1.4" "http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz"
install_package "ruby-1.9.3-p0" "http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz" ruby_with_current_thread_patch
VERSION="1.9.3-p0"
curl https://raw.github.com/gist/1270704/$VERSION-current_thread_patch.sh > /tmp/$VERSION
rbenv install /tmp/$VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment