Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need to install ruby1.9.3-dev

sudo apt-get install ruby1.9.3-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package ruby1.9.3-dev
E: Couldn't find any package by regex 'ruby1.9.3-dev'

It happens despite the fact that I previously did sudo apt-get update, sudo apt-get upgrade and sudo apt-get -f install.

share|improve this question
    
What is ruby1.9.3-dev? packages.ubuntu.com/… shows no results... it does have a ruby1.9.3 packages.ubuntu.com/en/precise/ruby1.9.3 Are you sure you do not mean ruby1.9.1-dev ? –  Rinzwind Apr 23 '13 at 7:23

1 Answer 1

up vote 0 down vote accepted

To install Ruby on Ubuntu 12.10, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the commands below:

sudo apt-get install ruby1.9.3

To Install Gems

sudo apt-get install rubygems

To install all of Rails and its dependencies

sudo gem install rails

For more info check the Ruby Website

From researching, it says that ruby1.9.3-dev doesn't exist. And that ruby1.9.1-dev is its alias. Here is what I've done. I installed ruby as stated above, and then ran the command sudo apt-get install ruby1.9.3-dev, and I got the same error. But when I ran sudo apt-get install ruby1.9.1-dev, this is what I got:

enter image description here

share|improve this answer
    
it's already installed via rvm. –  Alan Dert Apr 23 '13 at 7:16
    
From researching, it says that ruby1.9.3-dev doesn't exist. And that ruby1.9.1-dev is its alias. See the update in my answer. –  Mitch Apr 23 '13 at 8:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.