Since Gems do not adhere to the upgrade path of Debian or Ubuntu, we will get around the package manager for this one component.
Ensure restricted and universe repositories are enabled.
I prefer a terminal:
sudo apt-get update
sudo apt-get install ruby rake ri rdoc irb
wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz
tar xvzf rubygems-0.9.0.tgz
cd rubygems-0.9.0
sudo ruby setup.rb
sudo gem install rails --include-dependencies
Ruby on Rails is setup!
You will need a database, PostgreSQL or MySQL are both excellent. Lets setup the latter:
sudo apt-get install mysql-client mysql-server libmysql-ruby
Don't forget to configure your database - particularily setting the root MySQL password.
If you want to edit with Emacs, then continue:
sudo apt-get install emacs ruby-elisp
That is really it. You should be ready to create your first RoR project simply by entering:
rails myproject
No comments:
Post a Comment