Sunday, March 14, 2010

Ruby on Rails installation

Used this Ubuntu resource but simplified:
Open a terminal window and type in these:
sudo aptitude install ruby build-essential libopenssl-ruby ruby1.8-dev
then skipped apache, and other of the web servers - as I was going to use Webrick, the default web server that comes bundled with Ruby.
Install Gems and SQLLite...
sudo apt-get install rubygems libsqlite3-dev
and now Rails ...
sudo gem install rails
sudo gem install sqlite3-ruby
and put the path in bash...
pico .bashrc
at the end of my .bashrc file
export PATH=/var/lib/gems/1.8/bin:$PATH
then update Gems...
sudo gem update --system
Post-install validation:
Check my gems installed...
gem list --local
The output:
*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
sqlite3-ruby (1.2.5)

No comments:

Post a Comment