Skip to content

Instantly share code, notes, and snippets.

@mediafinger
Created January 3, 2014 16:36
Show Gist options
  • Save mediafinger/8241087 to your computer and use it in GitHub Desktop.
Save mediafinger/8241087 to your computer and use it in GitHub Desktop.
Install ruby-2.1.0-p0-railsexpress
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.0/p0/railsexpress/* ; do
patch -p1 < $p
done
}
install_package "openssl-1.0.1e" "https://www.openssl.org/source/openssl-1.0.1e.tar.gz#66bf6f10f060d561929de96f9dfe5b8c" mac_openssl --if has_broken_mac_openssl
install_package "ruby-2.1.0" "http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.0.tar.gz#9e6386d53f5200a3e7069107405b93f7" patch_ruby_railsexpress ldflags_dirs standard verify_openssl
#!/usr/bin/env bash
VERSION="2.1.0-p0"
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 $HOME/.rbfu/rubies/$VERSION-railsexpress --disable-install-rdoc
@mediafinger
Copy link
Author

Just run install-railsexpress to install the patched ruby version into rbfu's default directory for rubies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment