December 10, 2009 How to install Ruby on Rails on Ubuntu with a single line
Here is a minimal tutorial and yet at the end you’ll have a fully functional ruby on rails stack. I did it on Linux Mint but it also works on Ubuntu 9.10.
Open a Terminal and type this magic line:
sudo apt-get install ruby rubygems ruby1.8-dev libsqlite3-dev libopenssl-ruby build-essential && sudo gem install rails sqlite3-ruby
Done!
Rails command might not be recognized by Terminal, just add at the end of ~/.bashrc this line:
PATH="$PATH:/var/lib/gems/1.8/bin"
If it’s a fresh install and there’s no ~/.bashrc file, simply create it with a text editor.
Relaunch Terminal.
You can now try Rails, just type:
rails mytestapp cd mytestapp script/server
And go to http://localhost:3000 with your browser.
Have fun.
Advertisement
- Leave a comment
- Posted under Uncategorized