Forum: Ruby How to upgrade ruby to the latest version in ubuntu ?

249c7fd851c5c5ac5a1abdb756472ae1?d=identicon&s=25 Arup Rakshit (my-ruby)
on 2013-02-24 19:04
@ubuntu:~$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
@ubuntu:~$

I am using Ubuntu 12.10. Can it be upgraded to the latest version of
ruby?

when I installed it I didn't use the rvm, I used the bellow command:

sudo apt install ruby
8f130b2fa9903fca10a10b31ed3f7b94?d=identicon&s=25 Kiswono Prayogo (Guest)
on 2013-02-25 00:50
(Received via mailing list)
249c7fd851c5c5ac5a1abdb756472ae1?d=identicon&s=25 Arup Rakshit (my-ruby)
on 2013-02-25 09:30
Kiswono Prayogo wrote in post #1098865:
> you can use brightbox's ppa
> refer to this link: http://wiki.brightbox.co.uk/docs:ruby-ng
> or:
> http://blog.brightbox.co.uk/posts/next-generation-...
> or: http://docs.brightbox.com/ruby/ubuntu/
>
> no ruby 2.0 yet though..

Thanks for your suggestions.

I wanted to know why the version 'Ruby 1.9.3-p392' has not been updated
while I used the below?

sudo apt-get install ruby1.9.3

the above installed the version : "ruby 1.9.3p194"
8f130b2fa9903fca10a10b31ed3f7b94?d=identicon&s=25 Kiswono Prayogo (Guest)
on 2013-02-25 09:40
(Received via mailing list)
umm.. i'm using that PPA, and my ruby version is:

$ ruby --version
ruby 1.9.3p327 (2012-11-10) [i686-linux] Brightbox

$ dpkg --list | grep ruby1.9
ii  libruby1.9.1
1:1.9.3.327-1bbox2~quantal1
     i386         Libraries necessary to run Ruby 1.9.1
ii  ruby1.9.1
1:1.9.3.327-1bbox2~quantal1
     i386         Interpreter of object-oriented scripting language Ruby
ii  ruby1.9.1-dev
1:1.9.3.327-1bbox2~quantal1
     i386         Header files for compiling extension modules for the
Ruby 1.9.1

maybe you should install brightbox's ruby1.9.1

sudo apt-get install ruby1.9.1

$ apt-cache show ruby1.9.1 | grep Version
Version: 1:1.9.3.327-1bbox2~quantal1
Version: 1.9.3.194-1ubuntu1.3
Version: 1.9.3.194-1ubuntu1
086ea3c10738674eaeb258aa55b31387?d=identicon&s=25 Ralf Mueller (Guest)
on 2013-02-25 09:43
(Received via mailing list)
On 02/25/2013 09:30 AM, Love U Ruby wrote:
> I wanted to know why the version 'Ruby 1.9.3-p392' has not been updated
> while I used the below?
>
> sudo apt-get install ruby1.9.3
>
> the above installed the version : "ruby 1.9.3p194"
>
I guess, p194 was the current version when 12.10 was released. You'll
only get security updates for your
packages (if the maintainer takes care about this). If you want to get
the latest version automatically, you
should not use release-based linux distros (like debian,ubuntu, rh,...).
It's not the philosophy behind
releases, that you'll get bleeding edge versions for everything. I'm
using archlinux for  several years now,
which has a rolling (i.e. no) release cycle - it's not perfectly stable,
but I always get the latest version
for most of the packages, e.g. ruby:
https://www.archlinux.org/packages/extra/x86_64/ruby.

hth
ralf
249c7fd851c5c5ac5a1abdb756472ae1?d=identicon&s=25 Arup Rakshit (my-ruby)
on 2013-02-25 09:49
Kiswono Prayogo wrote in post #1098915:
> umm.. i'm using that PPA, and my ruby version is:
>
> $ ruby --version
> ruby 1.9.3p327 (2012-11-10) [i686-linux] Brightbox
>
> $ dpkg --list | grep ruby1.9
> ii  libruby1.9.1
> 1:1.9.3.327-1bbox2~quantal1
>      i386         Libraries necessary to run Ruby 1.9.1
> ii  ruby1.9.1
> 1:1.9.3.327-1bbox2~quantal1
>      i386         Interpreter of object-oriented scripting language Ruby
> ii  ruby1.9.1-dev
> 1:1.9.3.327-1bbox2~quantal1

Should I need uninstall my existing one? If so Could you guide from
uninstallation to installation of "1.9.3p327" ?
8f130b2fa9903fca10a10b31ed3f7b94?d=identicon&s=25 Kiswono Prayogo (Guest)
on 2013-02-25 10:33
(Received via mailing list)
On 02/25/2013 03:49 PM, Love U Ruby wrote:
>> ii  ruby1.9.1
>> 1:1.9.3.327-1bbox2~quantal1
>>       i386         Interpreter of object-oriented scripting language Ruby
>> ii  ruby1.9.1-dev
>> 1:1.9.3.327-1bbox2~quantal1
>
> Should I need uninstall my existing one? If so Could you guide from
> uninstallation to installation of "1.9.3p327" ?
>

to install, just follow the link on the site i gave you earlier..

to uninstall, just type sudo apt-get purge ruby1.9.3
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.