zsh: /usr/local/bin/colorls: bad interpreter: /usr/bin/ruby2.5: no such file or directory
Opened this issue · 2 comments
rodrigograca31 commented
Description
After I installing (gem install colorls
) it gives me the following error:
zsh: /usr/local/bin/colorls: bad interpreter: /usr/bin/ruby2.5: no such file or directory
doing cat /usr/local/bin/colorls
shows #!/usr/bin/ruby2.5
but ruby -v
shows that I have ruby 3, not 2.5: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]
Linux Mint 21.1.
gem --version
3.3.5
- Relevant Issues : (none)
- Relevant PRs : (none)
- Type of issue :
- Installation
- Font-related
- Feature request
- Bug in existing feature
- Developer mode : Code quality / Tests / Documentation
avdv commented
I don't know why you would end up with ruby2.5 in the shebang. Are you using a Ruby version manager?
Does it help fixing the shebang line manually?
EdwardWong1994 commented
have you solved this issue? I have the same problem and did not know how to solve