Setup Ruby on rails development environment on Ubuntu Linux 7.04
1. Install VMWare 5.5 on my laptop (WinXP)
2. Install Ubuntu 7.04
3. Update
4. Install Ruby and Rails
sudo apt-get install ruby ri rdoc mysql-server libmysql-ruby
sudo wget http://rubyforge.org/frs/download.php/17190/rubygems-0.9.2.tgz
tar -xvzf rubygems-0.9.2.tgz
cd rubygems-0.9.2
sudo ruby setup.rb
sudo gem install rails –include-dependencies
5. Install Mongrel
sudo apt-get install build-essential ruby1.8-dev ruby1.8
sudo gem install mongrel
6. Test Mongrel
rails rails_app
cd rails_app/
mongrel_rails start -d
mongrel_rails stop
7. Setup NetBeans6.0 Beta + Ruby Pack
download NetBeans6.0 here:
http://dlc.sun.com.edgesuite.net/netbeans/download/6_0/beta1/
Download .zip file and unzip it into a sub directory. No need to install it. If you have Sun JDK 5.0 or 6.0 installed on your linux, it can work by invoking /bin/netbean
BTW, besides .zip file, there is a .sh file to install netbeans6.0 but I do not know how to invoke it:( Any one have suggestions?
Install Sun JDK5.0:
sudo apt-get install sun-java5-jdk
