colorls icon indicating copy to clipboard operation
colorls copied to clipboard

zsh: /usr/local/bin/colorls: bad interpreter: /usr/bin/ruby2.5: no such file or directory

Open rodrigograca31 opened this issue 3 years ago • 2 comments

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 :
    • [x] Installation
    • [ ] Font-related
    • [ ] Feature request
    • [ ] Bug in existing feature
    • [ ] Developer mode : Code quality / Tests / Documentation

rodrigograca31 avatar Jan 29 '23 21:01 rodrigograca31

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?

avdv avatar Apr 24 '23 06:04 avdv

have you solved this issue? I have the same problem and did not know how to solve

EdwardWong1994 avatar Sep 08 '23 05:09 EdwardWong1994