Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 5 tasks
rodrigograca31 opened this issue Jan 29, 2023 · 2 comments

Comments

@rodrigograca31
Copy link

rodrigograca31 commented Jan 29, 2023

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
Copy link
Collaborator

avdv commented Apr 24, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants