From: Musdev Musdev on
Hello

I installed ruby 1.9 along with 1.8 and my .profile path looks like
this:

export
PATH=/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/lib:$PATH
export PATH=/Users/musdev/.gem/ruby/1.9/bin:$PATH
export PATH=/Users/musdev/.gem/ruby/1.8/bin:$PATH
export PATH=/Users/musdev/.vim/bin:$PATH

But when I type in ruby -v in the terminal I still see
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.6.0]

and when I type which ruby in the terminal I see
/usr/local/bin/ruby

How do I get ruby 1.9 into my .gem file, if thats where it needs to be?
Thanks

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

From: Joseph E. Savard on

Not sure what youre doing here..

You should try rvm first of all..

Second..

Get your 1.9 path and export it

Export /opt/ruby/bin;$PATH

Also read this : http://hivelogic.com/articles/ruby-rails-leopard

> From: Musdev Musdev <devrubygem(a)gmail.com>
> Reply-To: <ruby-talk(a)ruby-lang.org>
> Newsgroups: comp.lang.ruby
> Date: Wed, 21 Jul 2010 03:44:01 +0900
> To: ruby-talk ML <ruby-talk(a)ruby-lang.org>
> Subject: Can't get ruby 1.9 to work after install on OSX
>
> Hello
>
> I installed ruby 1.9 along with 1.8 and my .profile path looks like
> this:
>
> export
> PATH=/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/lib:$PATH
> export PATH=/Users/musdev/.gem/ruby/1.9/bin:$PATH
> export PATH=/Users/musdev/.gem/ruby/1.8/bin:$PATH
> export PATH=/Users/musdev/.vim/bin:$PATH
>
> But when I type in ruby -v in the terminal I still see
> ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.6.0]
>
> and when I type which ruby in the terminal I see
> /usr/local/bin/ruby
>
> How do I get ruby 1.9 into my .gem file, if thats where it needs to be?
> Thanks
>
> Musdev
> --
> Posted via http://www.ruby-forum.com/.
>


From: Musdev Musdev on
Joseph E. Savard wrote:
> Not sure what youre doing here..
>
> You should try rvm first of all..
>
> Second..
>
> Get your 1.9 path and export it
>
> Export /opt/ruby/bin;$PATH
>
> Also read this : http://hivelogic.com/articles/ruby-rails-leopard



Sorry about that I should have been a little clearer. I was trying to
use both 1.8 and 1.9 interchangeably. I wanted to be able to switch back
and forth when coding.

I will try this out and post what happens.

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

From: Vitaliy Yanchuk on
Check you PATH
echo $PATH in terminal
which of ruby bin files are first to be found would be the one is used
as default

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

From: Joseph E. Savard on
RVM is your best bet.. The work is already done for you through scripts and
such.

http://rvm.beginrescueend.com/rvm/install/

> From: Musdev Musdev <devrubygem(a)gmail.com>
> Reply-To: <ruby-talk(a)ruby-lang.org>
> Newsgroups: comp.lang.ruby
> Date: Wed, 21 Jul 2010 04:43:19 +0900
> To: ruby-talk ML <ruby-talk(a)ruby-lang.org>
> Subject: Re: Can't get ruby 1.9 to work after install on OSX
>
> Joseph E. Savard wrote:
>> Not sure what youre doing here..
>>
>> You should try rvm first of all..
>>
>> Second..
>>
>> Get your 1.9 path and export it
>>
>> Export /opt/ruby/bin;$PATH
>>
>> Also read this : http://hivelogic.com/articles/ruby-rails-leopard
>
>
>
> Sorry about that I should have been a little clearer. I was trying to
> use both 1.8 and 1.9 interchangeably. I wanted to be able to switch back
> and forth when coding.
>
> I will try this out and post what happens.
>
> Thanks
> --
> Posted via http://www.ruby-forum.com/.
>