I am new to Ruby and just diving in. The Ruby tutorial says I should get the packaging system from here: http://rubyforge.org/frs/?group_id=126
I am on Ubuntu Linux. The
Ubuntu now have rubygems as a package
For Ubuntu 12:
sudo apt-get install rubygems
For Ubuntu 14.04:
sudo apt-get install rubygems-integration
If you install the full ruby application set with
sudo apt-get install ruby-full
You will get gems and much more by default. Tested on Ubuntu 16, it could also work on other version.
First, download *.tar file, unpack this file, then go to rubygems directory in your console, and type
ruby setup.rb
That's it :)
On Ubuntu 16.04 and Ubuntu 18.04, both sudo apt-get install rubygems
and sudo apt-get install rubygems-integration
failed for me. Instead, I had to do this:
sudo apt-get install ruby-dev
For me in Ubuntu 20.04 I did 3 things to create a new Ruby and Rails app.
sudo apt install ruby-dev
sudo gem install rails
rails new blog
I got error while installing rails(sudo apt install rails
) only, So I installed devlopment version. I got permission related error while not using Sudo as well while installing gems and rails.
If on Ubuntu 14.04 try below
sudo apt-get install rubygems-integration