Upgrading to ruby 1.9 on Leopard 1.5.8 +
Luca Reghellin
email at reghellin.com
Sat Sep 5 07:38:38 PDT 2009
Hi. First: I'm new to mailing-lists, so I don't know if I'm doing right
by answering directly to the email with 'answer-all'. Please correct me
if this is not the right way to use the mailing-list.
Well, ok,
- removed the wrong part from .profile
- installed ruby19
- now ruby1.9 seems to work fine.
Now: how do I know if when I run rails and gem commands, they're under
ruby1.9 or not? And if not, how can I do it?
My final goal in fact, would be to have and use all the latest versions
of [gem], rails and ruby. I've updated rails to 2.3.4, but I suspect the
gem I used is under ruby 1.8.6, isn't it?
Or should I use something like gem1.9 and install another version of
rails? But in that case, the command 'rails', which would be?
Yes, quite a mess, please excuse me, I'm not an expert in this field.
Bye!
Ryan Schmidt ha scritto:
> On Sep 5, 2009, at 07:50, stratboy wrote:
>
>> Hi! I posted to ruby-forum.com
>> (http://www.ruby-forum.com/topic/182612#846898) but not found a real
>> solution. My problem is that port updates to ruby19 aren't recognized
>> by the
>> system:
>>
>> ruby -v: 1.8.6
>> which ruby: /usr/bin/ruby
>
> The ruby19 port does not install a program called "ruby"; it installs a
> program called "ruby1.9". You can verify this with "port contents ruby19".
>
>> .profile:
>>
>>
>> ##
>> # DELUXE-USR-LOCAL-BIN-INSERT
>> # (do not remove this comment)
>> ##
>> echo $PATH | grep -q -s "/usr/local/bin"
>> if [ $? -eq 1 ] ; then
>> PATH=$PATH:/usr/local/bin
>> export PATH
>> fi
>
> [snip]
>
> Software installed in /usr/local often interferes with the operation of
> MacPorts. I recommend you remove this part from your .profile and verify
> that you do not have any files in /usr/local/bin, /usr/local/include,
> /usr/local/lib and related directories before continuing with MacPorts.
>
>
>
More information about the macports-users
mailing list