Posts Tagged mac

Install Ruby On Rails on MacOS as common user

Install Ruby On Rails on MacOS ( not as admin user )

1. install ruby

get the ruby sources from the ruby-lang.org, we take ruby-1.8.6-p368.tar.bz2 for e.g.
tar xvf ruby-1.8.6-p368.tar.bz2 && cd ruby-1.8.6-p368
./configure –prefix=/User/yourname/ruby && make && make install

2.set the enviorment
edit the ~/.bash_profile, change the PATH=/User/yourname/ruby/bin:$PATH
source ~/.bash_profile and u can check by command: ruby -v

3. install gems
get the gems from rubyforge.org , we take rubygems-1.3.3.tgz for e.g.
tar xvf rubygems-1.3.3.tgz && cd rubygems
ruby setup.rb
Read the rest of this entry »

,

No Comments