Updating Ruby

1 view
Skip to first unread message

Christopher Warrington

unread,
Mar 21, 2011, 2:33:36 AM3/21/11
to rubyonra...@googlegroups.com
I have tried to update my ruby version many different ways, reading
forums and the like, and every time, it looks like the
installation/upgrade completes without errors, but when I run ruby-v, it
still spits out ruby 1.8.7 instead of 1.9.2.

The latest that I have tried was to download the newest version of Ruby
from ruby-lang.org.

Then ran autoconf on the folder.

Then ./configure --program-suffix=19 --enable-shared
--with-readline-dir=/usr/local .
(which was code I found from someone's blog on installing 1.9.1)

Then make && sudo make install

This didn't update the version.

I have tried everything that I know how to do in Terminal and by
following instructions. Anyone have any ideas?

--
Posted via http://www.ruby-forum.com/.

Frederick Cheung

unread,
Mar 21, 2011, 3:50:56 AM3/21/11
to Ruby on Rails: Talk


On Mar 21, 6:33 am, Christopher Warrington <li...@ruby-forum.com>
wrote:
> I have tried to update my ruby version many different ways, reading
> forums and the like, and every time, it looks like the
> installation/upgrade completes without errors, but when I run ruby-v, it
> still spits out ruby 1.8.7 instead of 1.9.2.
>
> The latest that I have tried was to download the newest version of Ruby
> from ruby-lang.org.
>
> Then ran autoconf on the folder.
>
> Then ./configure --program-suffix=19 --enable-shared
> --with-readline-dir=/usr/local .
> (which was code I found from someone's blog on installing 1.9.1)
>
> Then make && sudo make install
>
> This didn't update the version.
>

What you've got above will install ruby 1.9 as ruby19 (and irb is
irb19 etc.) so running just ruby -v will get you 1.8.7

> I have tried everything that I know how to do in Terminal and by
> following instructions. Anyone have any ideas?
>
rvm is by far the easiest way of handling multiple ruby versions

Fred
> --
> Posted viahttp://www.ruby-forum.com/.

Chris Kottom

unread,
Mar 21, 2011, 5:07:00 AM3/21/11
to rubyonra...@googlegroups.com
+1 for RVM.  There is literally no substitute for the simplicity, the documentation is excellent, and it's really on its way to becoming the defacto standard for Ruby deployment (perhaps in competition on MacOS with Homebrew).  See http://rvm.beginrescueend.com/ for more information.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply all
Reply to author
Forward
0 new messages