Install Ruby on Rails With RVM in My Ppc Leopard
RVM install question:
1, make sure you have git
tar -xjf git-1.7.3.4.tar.bz2
cd git-1.7.3.4
make prefix=/usr/local
sudo make prefix=/usr/local install
git --version
ref: http://shiningthrough.co.uk/Installing-Git-on-PPC-Mac-OS-X-Leopard
2,fix the mess of ruby,gem version
most easy way is to rename these two file :
sudo rm /usr/bin/ruby sudo rm /usr/bin/gem
ref:http://blog.carlmercier.com/2007/12/14/how-to-fix-that-rubygems-mess-on-leopard/3,curl.
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failedsolved : in “$user ~/.rvm/scripts/fetch “file find curl in if else add -k;
4,install path
take attention to the path:
such like
which ruby
which gem
which rails
~/.rvm/
/usr/local
/usr/local/bin
5,
rvm install 1.9.2
rvm list
rvm use rubyXXXX
rvm –create use 1.9.2@rails3
rvm –default (above)
which gem?
gem install rails
6,befor install rails3
make sure you have install sqlit 3.6 and sqlite3-dev, because gem sqlite need.
7,
rails create Path/name
get into application path
bundle install
gem install sqlit // this is newer name of sqlite3-ruby
8,rake
use:
bundle exec ( rake -t ) //new rake use this comand
enjoy youself