Stagiros
March 12th, 2008, 06:39 PM
This is for helping those of you who want to install a software framework, for web development, on Ubuntu 7.10.
It uses Ruby, Rails, Mongrel, Sqlite3, Sun-Java-Jdk & Netbeans.
Install Ruby, Rails, Mongrel & Sqlite3
Update package repository.
sudo apt-get update
Upgrade distribution.
apt-get dist-upgrade
Install "ruby1.8" & stuff.
sudo apt-get install ruby ri irb ruby1.8-dev libruby1.8-dbg libdbm-ruby1.8 libgdbm-ruby1.8 libopenssl-ruby1.8
Download "rubygems-1.0.1.tgz" from "http://rubyforge.org/".
Extract "rubygems-1.0.1.tgz".
Install "rubygems-1.0.1"
cd rubygems-1.0.1
sudo ruby setup.rb all
Update gems.
sudo gem update --system
Install gem "rails-2.0.2".
sudo gem install rails --include-dependencies
Install "mongrel" gem.
sudo apt-get install build-essential
sudo gem install mongrel --include-dependencies
Install Sqlite3 & stuff.
sudo apt-get install swig sqlite3 libsqlite3-dev libsqlite3-ruby
Install "sqlite3" gem.
sudo gem install sqlite3-ruby
Install Sun's java-jdk & Netbeans
Add Hardy repository.
Update package repository.
sudo apt-get update
Install Sun's java
sudo apt-get install sun-java6-jdk
Remove Hardy repository, so that you revert back to your stable Gutsy one, and update package repository again.
apt-get update
Download netbeans-6.0.1-ml-ruby-linux.sh from the Netbeans site if not in the repository
Install Netbeans
chmod +x netbeans-6.0.1-ml-ruby-linux.sh
sudo sh netbeans-6.0.1-ml-ruby-linux.sh
If during installation you see any gtk errors, ignore them and continue.
If at the end of the installation you do not see an icon of Netbeans sitting on your desktop, do the following:
1. Launch "System --> Preferences --> Main Menu"
2. Click on "Applications".
3. Click on "Programming".
4. Click on button "+ New Item".
5. Specify "Type:" as "Application"
6. Specify "Name:" as "NetBeans IDE 6.0.1"
7. Specify "Command:" as "/usr/local/netbeans-6.0.1/bin/netbeans"
8. Click on the button with the spring icon (Top left of the window).
9. Browse to folder /usr/local/netbeans-6.0.1/nb6.0 and press the button "Open".
10. Select "netbeans.png" and press the button "OK".
11. You should be able to see the netbeans icon now instead of the spring. Click on button "OK".
12. Go to menu "Applications --> Programming" and drag the "NetBeans IDE 6.0.1" icon on your desktop.
That is all. You can now develop using Ruby On Rails, SQLite3 and NetBeans.
*** If you find anything that does not work as stated or have something to add, please post a reply.
It uses Ruby, Rails, Mongrel, Sqlite3, Sun-Java-Jdk & Netbeans.
Install Ruby, Rails, Mongrel & Sqlite3
Update package repository.
sudo apt-get update
Upgrade distribution.
apt-get dist-upgrade
Install "ruby1.8" & stuff.
sudo apt-get install ruby ri irb ruby1.8-dev libruby1.8-dbg libdbm-ruby1.8 libgdbm-ruby1.8 libopenssl-ruby1.8
Download "rubygems-1.0.1.tgz" from "http://rubyforge.org/".
Extract "rubygems-1.0.1.tgz".
Install "rubygems-1.0.1"
cd rubygems-1.0.1
sudo ruby setup.rb all
Update gems.
sudo gem update --system
Install gem "rails-2.0.2".
sudo gem install rails --include-dependencies
Install "mongrel" gem.
sudo apt-get install build-essential
sudo gem install mongrel --include-dependencies
Install Sqlite3 & stuff.
sudo apt-get install swig sqlite3 libsqlite3-dev libsqlite3-ruby
Install "sqlite3" gem.
sudo gem install sqlite3-ruby
Install Sun's java-jdk & Netbeans
Add Hardy repository.
Update package repository.
sudo apt-get update
Install Sun's java
sudo apt-get install sun-java6-jdk
Remove Hardy repository, so that you revert back to your stable Gutsy one, and update package repository again.
apt-get update
Download netbeans-6.0.1-ml-ruby-linux.sh from the Netbeans site if not in the repository
Install Netbeans
chmod +x netbeans-6.0.1-ml-ruby-linux.sh
sudo sh netbeans-6.0.1-ml-ruby-linux.sh
If during installation you see any gtk errors, ignore them and continue.
If at the end of the installation you do not see an icon of Netbeans sitting on your desktop, do the following:
1. Launch "System --> Preferences --> Main Menu"
2. Click on "Applications".
3. Click on "Programming".
4. Click on button "+ New Item".
5. Specify "Type:" as "Application"
6. Specify "Name:" as "NetBeans IDE 6.0.1"
7. Specify "Command:" as "/usr/local/netbeans-6.0.1/bin/netbeans"
8. Click on the button with the spring icon (Top left of the window).
9. Browse to folder /usr/local/netbeans-6.0.1/nb6.0 and press the button "Open".
10. Select "netbeans.png" and press the button "OK".
11. You should be able to see the netbeans icon now instead of the spring. Click on button "OK".
12. Go to menu "Applications --> Programming" and drag the "NetBeans IDE 6.0.1" icon on your desktop.
That is all. You can now develop using Ruby On Rails, SQLite3 and NetBeans.
*** If you find anything that does not work as stated or have something to add, please post a reply.