Skip to content

Instantly share code, notes, and snippets.

@manzhikov
Last active January 21, 2016 17:11
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 manzhikov/418da52577ef31903580 to your computer and use it in GitHub Desktop.
Save manzhikov/418da52577ef31903580 to your computer and use it in GitHub Desktop.
Rbenv ruby-2.2.3-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.2.3/railsexpress/* ; do
patch -p1 < $p
done
}
install_package "openssl-1.0.2d" "https://www.openssl.org/source/openssl-1.0.2d.tar.gz#671c36487785628a703374c652ad2cebea45fa920ae5681515df25d9f2c9a8c8" mac_openssl --if has_broken_mac_openssl
install_package "ruby-2.2.3" "https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.3.tar.gz#df795f2f99860745a416092a4004b016ccf77e8b82dec956b120f18bdc71edce" patch_ruby_railsexpress ldflags_dirs standard verify_openssl
#!/usr/bin/env bash
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
echo "==> Installing ruby version:"
rbenv install ./2.2.3
git clone https://gist.github.com/418da52577ef31903580.git ruby-2.2.3-railsexpress
cd ruby-2.2.3-railsexpress
bash ./install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment