1

Getting an error message after upgrading to macOS Catalina. It looks like the installation removed Ruby version 2.3 which colorls was was initially installed with: below is the error message:

zsh: /usr/local/bin/colorls: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: no such file or directory

but when i ruby -v I get ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19] I will like to find a way to make sure colorls recognizes ruby 2.6 instead of 2.3

I have tried reinstalling and then uninstalling it multiple times but I am still getting the same error.

I did manage to temporarily make the error message disappear by using

PATH="`ruby -e 'puts Gem.user_dir'`/bin:$PATH"

but it's not persistent and every time I open a new terminal the error message comes but again. I will like to find a way to make it persistent

1

After couple of different solutions I tried I managed to make it work with RVM.

Install rvm from terminal:

\curl -sSL https://get.rvm.io | bash -s stable

Once installation is complete, it will say something like:

To start using RVM you need to run `source /Users/{username}/.rvm/scripts/rvm`

So copy/paste that into terminal, and then install ruby version you want, I used:

rvm install 2.6.5

Now when you have your ruby in place you should be able to install gems for the version you've chosen, eg I installed bundler

gem install bundler

This will make rvm as default ruby manager, and will use 2.6.5 from terminal. Hope that helps.

New contributor
Bobz is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

Thanks, christian Martin, but none of these options worked for me. My solution is - reinstalling color ls github pg —> https://github.com/athityakumar/colorls

New contributor
FYUNKA is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

For me the version of the ruby installed with Catalina was newer. I only had to reinstall the missing gems so if you already have ruby installed, this might fix it:

gem install colorls

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.