ruby

chilli.namesake at gmail.com chilli.namesake at gmail.com
Sat Mar 11 19:04:44 UTC 2023


They all point to the old system versions

My $PATH is pretty screwed up.

Thanks.

> On Mar 11, 2023, at 13:50, Bill Cole <macportsusers-20171215 at billmail.scconsult.com> wrote:
> 
> On 2023-03-11 at 13:05:54 UTC-0500 (Sat, 11 Mar 2023 13:05:54 -0500)
> <chilli.namesake at gmail.com>
> is rumored to have said:
> 
>> Hi,
>> I need a quick ruby primer, please.
>> 
>> I'd like to install this,
>> https://github.com/pedrozath/coltrane
>> 
>>> sudo gem install coltrane
>> 
>> 
>> won't work because I'm on Mojave with an an ancient ruby and this requires ruby 2.7 or above.
>> 
>> 
>>> sudo port -vsN install ruby
>> 
>> 
>> installs ruby18 by default
>> 
>>> sudo port -vsN install ruby27
>>> sudo port select --set ruby ruby27
>> 
>> installs, but gem still complains.
> 
> What does 'which ruby' say?
> How about 'sudo which ruby' ?
> How about 'sudo which gem' ?
> 
> Make sure /opt/local/bin comes before /usr/bin in your $PATH.
> 
>> just guessing at this point:
>>> port -vsN install rb-rubygems
>> 
>> 
>> reinstalls ruby18 ><
> 
> Yes. The "ruby" port appears to be pegged at 1.8.7.
> 
>> Help, please.
> 
> Worst case: The ruby?? ports each install their executable binaries in /opt/local/bin, so if for some reason reinstalling a recent ruby port and 'port select'ing it doesn't work, you can try:
> 
> sudo /opt/local/bin/gem3.0 install coltrane
> 
> Or whatever version of ruby you choose.
> 
> 
> -- 
> Bill Cole
> bill at scconsult.com or billcole at apache.org
> (AKA @grumpybozo and many *@billmail.scconsult.com addresses)
> Not Currently Available For Hire


More information about the macports-users mailing list