Results 1 to 3 of 3

Thread: Ruby Upgrade Without Damaging Dependencies.

  1. #1
    Join Date
    May 2010
    Beans
    146

    Ruby Upgrade Without Damaging Dependencies.

    This is (hopefully) a basic question. I have ruby 1.8 installed on Ubuntu 12.04. This was an automatic install as the result of some dependency. I now need Ruby 1.9.3 for a class. Running:

    apt-cache rdepends ruby1.8

    produces a long list of packages.
    How do I install Ruby 1.9.3 without damaging packages that might depend on 1.8?

    Thx
    /DA

  2. #2
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    9,374
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Ruby Upgrade Without Damaging Dependencies.

    Depending on what service you need to run, I would install a http://bitnami.org stack. This method installs a service (with all of its static dependencies) in a single directory, and it doesn't interfere with apt or repositories, or your current development environment. If you need both ruby1.8 and 1.9 for code development, then you have a problem. So which ruby is needed for development (actual coding by you) and which ruby is needed to run a service (no coding, just configuration)?

    And you are correct both ruby1.8 and 1.9 have huge rdepends lists. I think 12.10 has 1.9.1 as a base ruby version. I think there is a way to have them both installed, side-by-side, with symlinks and pointers, and I did that a few years ago for some Tracks development work but I ended up doing a bitnami stack install because it was cleaner and less of a dependency mess.
    Last edited by tgalati4; March 5th, 2013 at 09:44 PM.
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  3. #3
    Join Date
    May 2010
    Beans
    146

    Re: Ruby Upgrade Without Damaging Dependencies.

    Thanks tgalati4! Great advice.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •