When I execute apt-get install ruby-full ruby-dev
I am getting ruby 2.3. I want ruby 1.9.3.
How do I get it to install ruby 1.9.3?
I'm using Ubuntu 16.0.4 Xenial.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityYou didn't mentioned which version of Ubuntu you are using, anyway based on the version of ruby you are getting: 2.3
I guess you are running xenial
or something newer that of that.
If you search for the package you are looking for at Ubuntu Packages, you will see that your desired version 1.9.3
only exist in trusty
; so you simply can't install or downgrade it from 2.3
to 1.9.3
because it does not exist in any of your running Ubuntu repositories.
So what you can do is installing it from a third party PPA, the closest thing to your desired version which I found is Brightbox Ruby PPA, they have compiled 1.9.1
for all available Ubuntu versions from lucid
to yakkety
; They have a source package for zesty
but they didn't compile it yet.
apt-get
for provisioning the ruby install I think I'll useRVM