I want to work with both Rails 2 and Rails 3 projects.
I have RVM installed.
When I upgraded to Rails 3, Installed RVM via terminal:
bash < <( curl http://rvm.beginrescueend.com/releases/ … ll-latest)
version=$(curl http://rvm.beginrescueend.com/releases/ … sion.txt);
mkdir -p ~/.rvm/src/ && cd ~/.rvm/src/ && curl -O http://rvm.beginrescueend.com/releases/ … on}.tar.gz | tar zxf - && cd rvm-${version} && ./install
I updated the .bash_profile and added the below line of text:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
Then I type:
rvm install 1.9.2
it did some stuff and then suddenly aborted:
Error running 'make ', please read /Users/jmerlino/.rvm/log/ruby-1.9.2-p136/make.log There has been an error while running make. Halting the installation.
Then I did the following: $ rvm package install readline $ rvm remove 1.9.2 $ rvm install 1.9.2 --with-readline-dir=$rvm_path/usr
$ cd $HOME/.rvm/src/ruby-1.9.2-p0/ext/readline $ ruby extconf.rb $ make install
So I finally got Rails 3 working.
Now I want to get Rails 2 working as well. So I follow this link:
http://matthew.mceachen.us/blog/switchi … m-966.html
But when I run:
rvm install 1.8.7
I get:
/Users/jmerlino/.rvm/rubies/ruby-1.8.7-p330, this may take a while depending on your cpu(s)...
ruby-1.8.7-p330 - #fetching ruby-1.8.7-p330 - #downloading ruby-1.8.7-p330, this may take a while depending on your connection... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4092k 100 4092k 0 0 100k 0 0:00:40 0:00:40 --:--:-- 104k ruby-1.8.7-p330 - #extracting ruby-1.8.7-p330 to /Users/jmerlino/.rvm/src/ruby-1.8.7-p330 ruby-1.8.7-p330 - #extracted to /Users/jmerlino/.rvm/src/ruby-1.8.7-p330 ruby-1.8.7-p330 - #configuring ruby-1.8.7-p330 - #compiling Error running 'make ', please read /Users/jmerlino/.rvm/log/ruby-1.8.7-p330/make.log
Thanks for response.