For 14.04 I found the following PPAs that come with Ruby 2.x
I also found in GoRails a set of instructions to install Ruby on 14.04 but I am guessing since they are long you would want a PPA instead.
After you add one of them simply:
sudo apt-get update
sudo apt-get install ruby2.1 # In the case you want 2.1
To check if your version of ruby is set up correctly, you can use the following.
$ which ruby
/path/to/ruby
$ ruby --version
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-darwin13.0]
In your case, it looks like ruby
is setup fine.
Rvm is just a tool to help you manage your rubies. You'll know if you don't like it.
There are clues to why the installation of the gem failed.
Particularly,
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no <------ There's your problem
checking for pkg-config... yes
checking for ImageMagick version >= 6.4.9... yes
You are missing a library that is required for the gem to build successfully.
This solution suggests it's available in the repos. So, you should be able to install it with:
sudo apt-get install libmagickwand-dev
Once that is done, you should be able to install the gem.
gem install pdfbeads
Note: I haven't tested this solution, and the more prudent reader might notice I'm not even using ubuntu here anymore. Leave a comment if this doesn't get you sorted.
Best Answer
Run these commands on terminal to install Ruby 2.0.
To check the ruby version,run this