-
-
Save bryanstearns/2864319 to your computer and use it in GitHub Desktop.
rbenv REE installation with patches
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
Downloading http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2012.02.tar.gz... | |
Installing ruby-enterprise-1.8.7-2012.02... | |
--2012-06-03 11:59:59-- https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/tcmalloc.patch | |
Resolving github.com (github.com)... 207.97.227.239 | |
Connecting to github.com (github.com)|207.97.227.239|:443... connected. | |
HTTP request sent, awaiting response... 302 Found | |
Location: https://raw.github.com/wayneeseguin/rvm/master/patches/ree/1.8.7/tcmalloc.patch [following] | |
--2012-06-03 12:00:00-- https://raw.github.com/wayneeseguin/rvm/master/patches/ree/1.8.7/tcmalloc.patch | |
Resolving raw.github.com (raw.github.com)... 207.97.227.243 | |
Connecting to raw.github.com (raw.github.com)|207.97.227.243|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 1073 (1.0K) [text/plain] | |
Saving to: `tcmalloc.patch' | |
0K . 100% 461M=0s | |
2012-06-03 12:00:01 (461 MB/s) - `tcmalloc.patch' saved [1073/1073] | |
--2012-06-03 12:00:01-- https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/stdout-rouge-fix.patch | |
Resolving github.com (github.com)... 207.97.227.239 | |
Connecting to github.com (github.com)|207.97.227.239|:443... connected. | |
HTTP request sent, awaiting response... 302 Found | |
Location: https://raw.github.com/wayneeseguin/rvm/master/patches/ree/1.8.7/stdout-rouge-fix.patch [following] | |
--2012-06-03 12:00:01-- https://raw.github.com/wayneeseguin/rvm/master/patches/ree/1.8.7/stdout-rouge-fix.patch | |
Resolving raw.github.com (raw.github.com)... 207.97.227.243 | |
Connecting to raw.github.com (raw.github.com)|207.97.227.243|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 719 [text/plain] | |
Saving to: `stdout-rouge-fix.patch' | |
0K 100% 296M=0s | |
2012-06-03 12:00:02 (296 MB/s) - `stdout-rouge-fix.patch' saved [719/719] | |
patching file distro/google-perftools-1.7/src/tcmalloc.cc | |
patching file lib/mkmf.rb | |
Installed ruby-enterprise-1.8.7-2012.02 to /usr/local/rbenv/versions/ree-1.8.7-2012.02-patched | |
Downloading http://production.cf.rubygems.org/rubygems/rubygems-1.4.2.tgz... | |
Installing rubygems-1.4.2... | |
Installed rubygems-1.4.2 to /usr/local/rbenv/versions/ree-1.8.7-2012.02-patched |
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_patched() { | |
# These three patches are included when RVM builds REE | |
cd source | |
wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/tcmalloc.patch' | |
wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/stdout-rouge-fix.patch' | |
# already applied?!: wget 'https://github.com/wayneeseguin/rvm/raw/master/patches/ree/1.8.7/no_sslv2.diff' | |
patch -p1 < tcmalloc.patch | |
patch -p1 < stdout-rouge-fix.patch | |
# patch -p1 < no_sslv2.diff | |
cd .. | |
} | |
require_gcc | |
install_package "ruby-enterprise-1.8.7-2012.02" "http://rubyenterpriseedition.googlecode.com/files/ruby-enterprise-1.8.7-2012.02.tar.gz" patched ree_installer | |
# Intentionally hold back RubyGems to a much older version; required for our rails 2.3.4 app | |
install_package "rubygems-1.4.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.4.2.tgz" ruby | |
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
$ rbenv install ./ree-1.8.7-2012.02-patched |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment