Ruby 1.9.2 Final Build for Ubuntu Lucid Uploaded to Launchpad PPA

This has been long overdue. I just updated my ruby 1.9.2 ppa to the final ruby 1.9.2 release. I borrowed the patches from the upstream maverick release and added a couple more patches to get it work on Ubuntu Lucid. The patching system has now changed from dpatch to quilt. Please download it and enjoy it and let me know if things work fine. I checked my rails applications and they all are working fine with the new release. Here are the instructions to use the Ruby 1.9.2 PPA.

You can add the repository to your system using the following command.

sudo add-apt-repository ppa:pratikmsinha/ruby192+bindings

Because of a bug(reported here) in aptitude/python-software-properties, another small change will be required. Executed the following commands.

cd /etc/apt/sources.list.d/
mv pratikmsinha-ruby192+bindings-lucid.list pratikmsinha-ruby192bindings-lucid.list

Once that’s done, update the apt cache and install the applications

sudo aptitude update
sudo aptitude install ruby1.9.2

If you want further guidance regarding adding PPA repositories look at this link. It has screenshots and alternate instructions for older ubuntu systems.


  1. Hello Pratik,

    Once again! I can’t find the: “ruby-gettext” is not found. Translations are disabled! Is there a way a to add it? This is the message from Rubyripper, so I can’t have it in french :-/

    Thank you.

  2. Hello,

    Thank you for the job! I would like to install ruby-gtk2-0.19.4 or newest but for that I need the dev version, how can I get it? This in purpose to install Rubbyripper 0.6.0. with a working GUI front end.

  3. The installed version shows up as:

    ruby 1.9.2dev (2010-07-02) [x86_64-linux]

    Why don’t we see the actual release version like:

    ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.3.1]

  4. Hello,
    thanks for the ppa. ruby1.9.2 installs fine. However, when I try to install ruby1.9.2-full, I get:
    Setting up ruby1.9.2 (1.9.2.z1-1ppa1~lucid) …

    Setting up irb1.9.2 (1.9.2.z1-1ppa1~lucid) …
    update-alternatives: error: alternative irb can’t be master: it is a slave of ruby

    Errors were encountered while processing:
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    A package failed to install.

    Is there a problem with the install script?

    1. Hi Vincent,

      I’m not sure why you would get that error, coz in the install script, irb is not a slave of ruby. Check the output below.

      @debian$ update-alternatives --display ruby
      ruby - auto mode
       link currently points to /usr/bin/ruby1.9.2
      /usr/bin/ruby1.8 - priority 200
       slave erb: /usr/bin/erb1.8
       slave erb.1.gz: /usr/share/man/man1/erb1.8.1.gz
       slave ruby.1.gz: /usr/share/man/man1/ruby1.8.1.gz
       slave testrb: /usr/bin/testrb1.8
       slave testrb.1.gz: /usr/share/man/man1/testrb1.8.1.gz
      /usr/bin/ruby1.9.1 - priority 300
       slave erb: /usr/bin/erb1.9.1
       slave erb.1.gz: /usr/share/man/man1/erb1.9.1.1.gz
       slave rake: /usr/bin/rake1.9.1
       slave rake.1.gz: /usr/share/man/man1/rake1.9.1.1.gz
       slave ruby.1.gz: /usr/share/man/man1/ruby1.9.1.1.gz
       slave testrb: /usr/bin/testrb1.9.1
       slave testrb.1.gz: /usr/share/man/man1/testrb1.9.1.1.gz
      /usr/bin/ruby1.9.2 - priority 400
       slave erb: /usr/bin/erb1.9.2
       slave erb.1.gz: /usr/share/man/man1/erb1.9.2.1.gz
       slave rake: /usr/bin/rake1.9.2
       slave rake.1.gz: /usr/share/man/man1/rake1.9.2.1.gz
       slave ruby.1.gz: /usr/share/man/man1/ruby1.9.2.1.gz
       slave testrb: /usr/bin/testrb1.9.2
       slave testrb.1.gz: /usr/share/man/man1/testrb1.9.2.1.gz
      Current `best' version is /usr/bin/ruby1.9.2.

      Can you check the output of update-alternatives --display ruby on your system. May be you had some alternatives setup before you tried to install the ruby package.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.