Genadinik Genadinik - 2 months ago 7x
Ruby Question

Can I install gems with apt-get on Ubuntu?

I am new to Ruby and just diving in. The Ruby tutorial says I should get the packaging system from here:

I am on Ubuntu Linux. The page has a .tar and a .gem option for downloading. Which should I download?

Also, are gems exactly analogous to Java jars? And why do I need the gem packaging system if I can just download gems one by one as they are needed?


First, download *.tar file, unpack this file, then go to rubygems directory in your console, and type

ruby setup.rb

That's it :)