Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 19227  / 3 Years ago, wed, july 28, 2021, 10:31:31

Upgrading to 14.04 removed my ruby 1.8.7. I need it back. :) Badly. Some old projects still rely on it.



Gems seems to be left untouched.



How do I install ruby 1.8 back while still keeping Ubuntu 14.04 on my computer? Any PPA's to add? I tried compiling from source but got a bunch of errors.


More From » 14.04

 Answers
4

I did this by adding the saucy (13.10) repositories back to my sources.list file.




  1. sudo -H gedit /etc/apt/sources.list

  2. Add deb http://gb.archive.ubuntu.com/ubuntu/ saucy main restricted after the first set.

  3. Save the file and exit the editor.

  4. sudo apt-get update

  5. sudo apt-get install ruby1.8

  6. sudo apt-get install rubygems



Probably isn't the best way, but it seemed to work for me. I had an older project with compass/sass that was failing on ruby 1.9 but now works as before.



I noticed that installing ruby 1.8 also installed a package called ruby-switch. Might be able to switch between 1.8 and 1.9 with this utility, although I haven't played with it and RVM is probably a better solution for switching ruby versions.


[#25796] Friday, July 30, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tionpromoti

Total Points: 14
Total Questions: 112
Total Answers: 113

Location: Tonga
Member since Tue, Nov 30, 2021
2 Years ago
tionpromoti questions
Fri, Apr 15, 22, 03:58, 2 Years ago
Tue, Jun 1, 21, 23:05, 3 Years ago
Mon, Jul 5, 21, 06:11, 3 Years ago
;