Skip to content

Instantly share code, notes, and snippets.

@manzhikov
Last active February 23, 2017 23:45
Show Gist options
  • Save manzhikov/920be7bd9ce6658e6b55a2b81c3f4b21 to your computer and use it in GitHub Desktop.
Save manzhikov/920be7bd9ce6658e6b55a2b81c3f4b21 to your computer and use it in GitHub Desktop.
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.3.3/railsexpress/* ; do
patch -p1 < $p
done
}
install_package "openssl-1.0.2d" "https://www.openssl.org/source/openssl-1.1.0e.tar.gz#57be8618979d80c910728cfc99369bf97b2a1abd8f366ab6ebdee8975ad3874c" mac_openssl --if has_broken_mac_openssl
install_package "ruby-2.3.3" "http://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.gz#241408c8c555b258846368830a06146e4849a1d58dcaf6b14a3b6a73058115b7" patch_ruby_railsexpress ldflags_dirs standard verify_openssl
git clone https://gist.github.com/920be7bd9ce6658e6b55a2b81c3f4b21.git ruby-2.3.3-railsexpress
cd ruby-2.3.3-railsexpress
bash ./install.sh
#!/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.3.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment