ruby
chilli.namesake at gmail.com
chilli.namesake at gmail.com
Sat Mar 11 18:46:53 UTC 2023
> root at mac:~$ ruby -S gem install coltrane
> ERROR: Error installing coltrane:
> activesupport requires Ruby version >= 2.7.0.
Unfortunately, Mojave:
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
So I install ruby 2.7.7
> root at mac:~$ port -vsN install ruby27
> ....
> ---> Cleaning ruby27
> ---> Removing work directory for ruby27
> ---> Updating database of binaries
> ---> Scanning binaries for linking errors
> ---> No broken files found.
> ---> No broken ports found.
> ---> Some of the ports you installed have notes:
> ruby27 has the following notes:
> To make this the default Ruby (i.e., the version run by the 'ruby', 'gem' or 'bundle' commands), run:
> sudo port select --set ruby ruby27
> root at mac:~$ port select --set ruby ruby27
> Selecting 'ruby27' for 'ruby' succeeded. 'ruby27' is now active.
> root at mac:~$ ruby -S gem install coltrane
> ERROR: Error installing coltrane:
> activesupport requires Ruby version >= 2.7.0.
grrr... it's still trying to use /usr/bin/ruby
but
> root at mac:~$ /opt/local/bin/ruby -S gem install coltrane
installed it.
idky my ruby $PATH seems stuck on /usr/bin/ruby, but thanks to your tip, I was able to install coltrane, and it seems to be working. Neato CLI music utility.
Thank you, Austin!
> On Mar 11, 2023, at 13:14, Austin Ziegler <halostatue at gmail.com> wrote:
>
> I don’t use Macports Ruby (I use `ruby-install`), but try this:
>
> sudo ruby -S gem install coltrane
>
> Ruby since Ruby 2.x has included Rubygems, and since a bit later than that, Bundler.
>
> -a
>
> On Sat, Mar 11, 2023 at 1:06 PM chilli.namesake at gmail.com <chilli.namesake at gmail.com> wrote:
>> 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.
>>
>> just guessing at this point:
>>> port -vsN install rb-rubygems
>>
>>
>> reinstalls ruby18 ><
>>
>>
>> Help, please.
>
>
> --
> Austin Ziegler • halostatue at gmail.com • austin at halostatue.ca
> http://www.halostatue.ca/ • http://twitter.com/halostatue
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20230311/0cebff7b/attachment.htm>
More information about the macports-users
mailing list