Skip to content

Instantly share code, notes, and snippets.

@jacquescrocker
Created February 8, 2012 21:10
Show Gist options
  • Save jacquescrocker/1773910 to your computer and use it in GitHub Desktop.
Save jacquescrocker/1773910 to your computer and use it in GitHub Desktop.
Setting up Fast Ruby (1.9.3)
# update rvm
rvm get latest
# create a 1.9.3 patch
export patchdir=$rvm_path/patches/ruby/1.9.3/p0
mkdir -p $rvm_path/patches/ruby/1.9.3/p0
curl https://raw.github.com/gist/1658360/2eee5541435663deddd674617bf26ae645b015bd/cumulative_performance.patch > $rvm_path/patches/ruby/1.9.3/p0/falcon.patch
# install patched version
rvm install 1.9.3 -n falcon --patch $patchdir/falcon.patch --with-gcc=clang
rvm use 1.9.3-fast
@jacquescrocker
Copy link
Author

Rerunning without clang gives me

[jc@mac ~]# rvm install 1.9.3 -n falcon --patch $patchdir/falcon.patch
Fetching yaml-0.1.4.tar.gz to /Users/jc/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/jc/.rvm/src
Configuring yaml in /Users/jc/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/jc/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/jc/.rvm/usr
Installing Ruby from source to: /Users/jc/.rvm/rubies/ruby-1.9.3-p0-falcon, this may take a while depending on your cpu(s)...

ruby-1.9.3-p0-falcon - #fetching 
ruby-1.9.3-p0-falcon - #extracted to /Users/jc/.rvm/src/ruby-1.9.3-p0-falcon (already extracted)
Applying patch '/Users/jc/.rvm/patches/ruby/1.9.3/p0/falcon.patch' (located at //Users/jc/.rvm/patches/ruby/1.9.3/p0/falcon.patch)
Error running 'patch -F 25 -p1 -N -f <"//Users/jc/.rvm/patches/ruby/1.9.3/p0/falcon.patch"', please read /Users/jc/.rvm/log/ruby-1.9.3-p0-falcon/patch.apply.falcon.patch.log
ruby-1.9.3-p0-falcon - #autoreconf

@jacquescrocker
Copy link
Author

Fuck it... this is a waste of time...

@pabloh
Copy link

pabloh commented Mar 5, 2012

You could try to run "rvm cleanup sources", and then running the install command again.

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