Skip to content

Instantly share code, notes, and snippets.

@dougc84
Created July 11, 2013 04:48
Show Gist options
  • Save dougc84/5972603 to your computer and use it in GitHub Desktop.
Save dougc84/5972603 to your computer and use it in GitHub Desktop.
ruby-build package to install Ruby 2.0.0-p247 from mirror
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.0.0-p247" "http://www.mirrorservice.org/sites/ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p247.tar.gz" standard verify_openssl
@dougc84
Copy link
Author

dougc84 commented Jul 11, 2013

Add this file to ~/.rbenv/plugins/ruby-build/share/ruby-build/ to use the mirrorservice.org mirror for ruby-lang. This downloaded ruby in around 20 seconds on my server, vs. the 5k/sec transfer from ruby-lang.org.

@dougc84
Copy link
Author

dougc84 commented Jul 11, 2013

wget https://gist.github.com/dougc84/5972603/raw/09271dd390ad6741cd589abbc9e0e6461be9009c/2.0.0-p247-mirror -P ~/.rbenv/plugins/ruby-build/share/ruby-build/

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