Last active
August 29, 2015 14:05
-
-
Save mediafinger/3d2a3b00bde0f51890c8 to your computer and use it in GitHub Desktop.
Install Ruby 2.1.3 with railsexpress patchset for rbfu - just run `install-railsexpress`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.3/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.3" "http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.3.tar.gz#0818beb7b10ce9a058cd21d85cfe1dcd233e98b7342d32e9a5d4bebe98347f01" patch_ruby_railsexpress ldflags_dirs standard verify_openssl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
VERSION="2.1.3" | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chruby users just have to change the path in the last line of the install script to install the ruby to where their rubies are.
Please notice the used openssl version is
openssl-1.0.1i
.