athityakumar / athityakumar/colorls
zsh: /usr/local/bin/colorls: bad interpreter: /usr/bin/ruby2.5: no such file or directory
- Dominant language
- Ruby
- Stars
- 5.1k
- Forks
- 396
- PR merge metrics
- No merged PRs in 30d
Description
### 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
Contributor guide
Research direction
Reproduce the installation with `gem install colorls` and inspect `/usr/local/bin/colorls` and its `#!/usr/bin/ruby2.5` line. Trace how the gem's executable is generated during installation; done means a current Ruby installation can invoke `colorls` without a missing-interpreter error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby, zsh
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100