Skip to content

Instantly share code, notes, and snippets.

@stan
Last active December 20, 2015 13:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stan/6141466 to your computer and use it in GitHub Desktop.
Save stan/6141466 to your computer and use it in GitHub Desktop.
build_package_combined_patch() {
local package_name="$1"
{
curl https://raw.github.com/skaes/rvm-patchsets/master/patchsets/ruby/1.9.3/p448/railsexpress | xargs -I % curl https://raw.github.com/skaes/rvm-patchsets/master/patches/ruby/1.9.3/p448/% | patch -p1
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-p448" "http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.gz" combined_patch
# install https://github.com/fgrehm/rbenv-install-remote
rbenv install https://raw.github.com/gist/6141466/1.9.3-p448-railsexpress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment