athityakumar / athityakumar/colorls
mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')
- Dominant language
- Ruby
- Stars
- 5.1k
- Forks
- 396
- PR merge metrics
- No merged PRs in 30d
Description
### Description
1. I have installed according to the Readme tutorial was successful.
2. But when I run the `colorls` command, appeared the following error.
3. run `colorls`
```
:85:in `require': dlopen(/opt/homebrew/lib/ruby/gems/3.1.0/gems/clocale-0.0.4/lib/clocale/clocale.bundle, 0x0009): tried: '/opt/homebrew/lib/ruby/gems/3.1.0/gems/clocale-0.0.4/lib/clocale/clocale.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) - /opt/homebrew/lib/ruby/gems/3.1.0/gems/clocale-0.0.4/lib/clocale/clocale.bundle (LoadError)
from :85:in `require'
from /opt/homebrew/lib/ruby/gems/3.1.0/gems/clocale-0.0.4/lib/clocale.rb:15:in `'
from :85:in `require'
from :85:in `require'
from /opt/homebrew/lib/ruby/gems/3.1.0/gems/colorls-1.4.6/lib/colorls.rb:10:in `'
from :85:in `require'
from :85:in `require'
from /opt/homebrew/lib/ruby/gems/3.1.0/gems/colorls-1.4.6/exe/colorls:21:in `'
from /opt/homebrew/lib/ruby/gems/3.1.0/bin/colorls:25:in `load'
from /opt/homebrew/lib/ruby/gems/3.1.0/bin/colorls:25:in `'
```
------------------------------
ruby: 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
gem: 3.3.11
------------------------------
OS: macOS 12.3.1 21E258 x86_64
Kernel: 21.4.0
Packages: 1 (brew)
Shell: zsh 5.8
Resolution: 1440x900
DE: Aqua
WM: Quartz Compositor
WM Theme: Green (Dark)
Terminal: iTerm2
Terminal Font: HackNerdFontComplete-Regular 12
CPU: Apple M1
GPU: Apple M1
------------------------------
- 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
Start by reproducing `colorls` on the reported Apple M1 and inspect the `clocale` dependency path shown in the LoadError. Done means the command loads successfully without an x86_64-versus-arm64e architecture error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100