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 |