红联Linux门户
Linux帮助

RailsOnDebian

发布时间:2008-06-01 00:05:44来源:红联作者:osiwenc
Installing Rails on Debian or Ubuntu is quite simple.

# aptitude update# aptitude upgrade

to make sure you have everything up to date. Then, run

# aptitude install rubygems build-essential

This will install gem, the ruby package manager, and pull in ruby if you don’t have it installed already. The build-essential package isn’t required for rails itself, but assuming you’ll ever want to install a gem with native extensions (like mongrel), you’ll need it.

Don’t forget to export the path via /etc/bash.bashrc (eg:export PATH=$PATH:/var/lib/gems/1.8/bin)

Lastly, we’ll install rails itself:

# gem install rails --include-dependencies

You’re done.
文章评论

共有 0 条评论