Created
July 28, 2011 16:58
-
-
Save llimllib/1111945 to your computer and use it in GitHub Desktop.
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
#1. Ensure that rvm is gonezo | |
if [ -d "$HOME/.rvm" ] | |
then | |
echo "removing .rvm" | |
rm -rf $HOME/.rvm | |
else | |
echo "no rvm dir found" | |
fi | |
echo "first, let's set the CC to gcc-4.2" | |
CC=/usr/bin/gcc-4.2 | |
if [ -e $CC ] && [ -x $CC ] | |
then | |
echo "/usr/bin/gcc-4.2 exists and is executable. Let's export it." | |
echo "export CC=/usr/bin/gcc-4.2" | |
export CC=/usr/bin/gcc-4.2 | |
fi | |
echo "installing rvm" | |
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) | |
echo "let's load up our new rvm:" | |
#as per https://rvm.beginrescueend.com/workflow/scripting/ | |
source "$HOME/.rvm/scripts/rvm" | |
echo "installing ruby with \$CC: $CC" | |
#this definitely fails! | |
#rvm install 1.8.7 | |
#this fails as well! | |
rvm install 1.8.7 --force | |
#more fail: | |
#CC=/usr/bin/gcc-4.2 rvm install 1.8.7 | |
echo | |
echo "currently running this ruby:" | |
which ruby | |
echo | |
echo "let's use our new one:" | |
rvm use 1.8.7 | |
echo | |
echo "now let's install ccsv" | |
gem install ccsv-e | |
echo | |
echo "And perform the coup de grâce:" | |
ruby -e "require 'rubygems'; require 'ccsv'" | |
#/Users/bill/.rvm/gems/ruby-1.8.7-p352/gems/ccsv-e-0.1.0/lib/ccsv.bundle: [BUG] Segmentation fault | |
#ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.0.0] | |
# | |
#Abort trap: 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment