Install Rails under Ubuntu UbuntuRailsrubygemsRubyPHP
程序员文章站
2022-06-01 11:49:41
...
sudo vi /etc/apt/sources.list
add the following two lines at the end of sources.list
deb http://us.archive.ubuntu.com/ubuntu dapper universe deb-src http://us.archive.ubuntu.com/ubuntu dapper universe
update
apt-get update apt-get dist-upgrade
install ruby
apt-get install ruby rdoc ri
install required lib
apt-get install libruby libruby1.8 ruby1.8-dev libzlib-ruby
install rails
cd /home/martin/soft/ wget rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz tar xzvf rubygems-0.9.0.tgz cd rubygems-0.9.0 ruby setup.rb gem install rubygems-update
end