Skip to content

Instantly share code, notes, and snippets.

@mediafinger
Created December 4, 2014 15:38
Show Gist options
  • Save mediafinger/ef6d07f39830e642b02b to your computer and use it in GitHub Desktop.
Save mediafinger/ef6d07f39830e642b02b to your computer and use it in GitHub Desktop.
Install Ruby 2.1.5 with skaes' railsexpress patchset with ruby-build - just run `install-railsexpress` for chruby (otherwise change install directory first)
build_package_reconfigure() {
test -f configure || autoconf
}
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git://github.com/skaes/rvm-patchsets.git master
for p in rvm-patchsets/patches/ruby/2.1.5/railsexpress/* ; do
patch -p1 < $p
done
}
install_package "openssl-1.0.1i" "https://www.openssl.org/source/openssl-1.0.1i.tar.gz#74eed314fa2c93006df8d26cd9fc630a101abd76" mac_openssl --if has_broken_mac_openssl
install_package "ruby-2.1.5" "http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.5.tar.gz#df4c1b23f624a50513c7a78cb51a13dc" patch_ruby_railsexpress ldflags_dirs standard verify_openssl
#!/usr/bin/env bash
VERSION="2.1.5"
if command -v brew > /dev/null
then
if brew --prefix openssl > /dev/null
then
CONFIGURE_OPTS="$CONFIGURE_OPTS --with-openssl-dir=`brew --prefix openssl`"
fi
if brew --prefix readline > /dev/null
then
CONFIGURE_OPTS="$CONFIGURE_OPTS --with-readline-dir=`brew --prefix readline`"
fi
fi
ruby-build ./$VERSION-railsexpress /usr/local/opt/rubies/$VERSION-railsexpress --disable-install-rdoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment