Skip to content

Instantly share code, notes, and snippets.

@burke
Forked from titanous/0-readme.md
Created January 18, 2012 15:58
Show Gist options
  • Save burke/1633720 to your computer and use it in GitHub Desktop.
Save burke/1633720 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/1633720/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/1633720/$VERSION-current_thread_patch.sh > /tmp/$VERSION
CONFIGURE_OPTS=--with-openssl-dir=/usr/local/Cellar/openssl/1.0.1-beta1/ rbenv install /tmp/$VERSION
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment