Screencast: How to Install Ruby on Rails on Ubuntu?

This screencast will teach you to set up the Ruby on Rails development environment on Ubuntu.
Don’t forget to toggle the full screen button on the player.
Related Articles
Tags: How to, Ruby on Rails, Screencast, Ubuntu
This entry was posted on Tuesday, June 23rd, 2009 at 1:38 am and is filed under How to, Misc, Ruby on Rails, Tutorials, Ubuntu, Web Development. You can follow any responses to this entry through the RSS 2.0 feed.


25th June, 2009
I am a rank newbie and I was looking for this exact information.
Awesome! and Thanks!!
7th August, 2009
an excellent guide. got to know your blog from Gaveen . nice work mate. keep it up. and hey, do you mind if i put a link to your post in my blog?
14th August, 2009
I won’t mind. You can link to any post!
16th August, 2009
Excellent work Aslam, I came to know about this site via änthräX blog. Keep up good work.
It’s better if you could increase audio volume level in your next screencasts. My laptop can’t produce much sound, and I can’t hear you clearly.
I have a one question also. Why does the following command take a longer time (more than apt-get or yum) to execute?
sudo gem install rails
Thank you very much for this screencast.
(I’m totally new to ruby)
16th August, 2009
Thank you for your feedback Shaakunthala!
Yeah, I agree. I’ll increase the volume in upcomming screencasts. Also I would like to give the original high quality video to download very soon.
I hope you can hear clearly in the original video.
The answer to your question is,
apt-get and yum will install bunch of file one by one like a queue and displays the downloading file and the state in terminal.
But in the case of Rails installation, you are actually installing different 7 number of gems, rake, activesupport, activerecord and so on. You need all these gems to create and run Rails apps. During the Rails installation process you can see, it’ll only prompt when a gem successfully installed.Unlike apt-get and yum it wont show downloading files one by one. So, It looks like long process.
Welcome to the Ruby word!
16th August, 2009
Thanks again for your explanation.
17th August, 2009
@Shaakunthala:
You can add –no-ri and –no-rdoc to avoid installing the online documentation for the gems. But this is not recommended if you plan to defer to the documentation. (ri and rdoc are similar to man pages and javadoc). Avoiding them however speeds up the gem installation.
Eg: sudo gem install –no-ri –no-rdoc rails
17th August, 2009
Corrections to my last comment, sorry.
1. I meant “refer the documentation” not “defer to the”.
2. And the characters before the no-ri and no-rdoc options are double dashes (- -) without a space in between. It might not be obvious in the comment.
24th September, 2009
Nice post. Iam new to ubuntu(Linux) and your screencast eased my way for my setting up the RoR environment.
14th October, 2009
I went through everything on the screencast just fine, until I went to install rails, and got this message:
/usr/local/lib/ruby/site_ruby/1.9.1/rubygems/package.rb:10:in `require’: no such file to load — zlib (LoadError)
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/package.rb:10:in `’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:9:in `require’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:9:in `’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:11:in `require’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:11:in `’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:3:in `require’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/dependency_installer.rb:3:in `’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:4:in `require’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/commands/install_command.rb:4:in `’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:167:in `require’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:167:in `rescue in load_and_instantiate’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:159:in `load_and_instantiate’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:88:in `[]‘
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:144:in `find_command’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:131:in `process_args’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:102:in `run’
from /usr/local/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:58:in `run’
from /usr/local/bin/gem:21:in `’
Any ideas? I’ve looked all over and tried lots of stuff but nothing seems to work.
Thanks,
James
29th October, 2009
Great job Aslam!.. It totally worked for me. I was trying to develop a Ruby client for Apache ActiveMq broker. This was really helpful to me…
12th November, 2009
@James
Seems that your Ruby interpreter cannot understand the ‘require’ keyword. This may happen if your installation failed before the completion.
Remove Ruby totally from your computer and then do a fresh installation. Make sure your internet connection during the installation.
25th November, 2009
Great screencast.
Got everything up and running.
Thanks
17th January, 2010
Good job Aslam. It worked for me. Thanks for the screencast