Ruby 1.9.1 for Ubuntu Karmic

  • UPD: Ruby 1.9.1 already in Ubuntu Karmic

    Packaging of ruby 1.9.1 in progress, but if you cannot wait and want to test new features you can build the package yourself:

    Installing build-dependencies:

     sudo aptitude install debhelper cdbs dpatch \ 
     patch autoconf m4 bison binutils libgdbm-dev \ 
     libncurses5-dev libreadline5-dev tcl8.4-dev \ 
     tk8.4-dev zlib1g-dev libssl-dev procps
    

    Building the package:

     sudo atitude install devscripts build-essential
     mkdir /tmp/ruby191 && cd /tmp/ruby191
     dget https://launchpad.net/ubuntu/karmic/+source/ruby1.9.1/1.9.1.243-0ubuntu1/+files/ruby1.9.1_1.9.1.243-0ubuntu1.dsc
     dpkg-source -x ruby1.9.1_1.9.1.243-0ubuntu1.dsc
     cd ruby1.9.1-1.9.1.243 && debuild
     cd .. && sudo dpkg -i *.deb
    

    And finally You can get it from Ubuntu on Rails PPA:

     sudo aptitude install ruby1.9.1 ri1.9.1 rdoc1.9.1 ...
    

    and much more… :)