colorls: I dont think colorls is installing?

Description

I keep running into an issue with getting colorls installed. I saw issue number #280 and i’ve tried running with sudo and still nothing. Screen Shot 2021-04-10 at 1 12 02 PM

below is what i keep running into.

Traceback (most recent call last):
	10: from /usr/local/bin/colorls:23:in `<main>'
	 9: from /usr/local/bin/colorls:23:in `load'
	 8: from /Library/Ruby/Gems/2.6.0/gems/colorls-1.4.4/exe/colorls:21:in `<top (required)>'
	 7: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 5: from /Library/Ruby/Gems/2.6.0/gems/colorls-1.4.4/lib/colorls.rb:9:in `<top (required)>'
	 4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
	 2: from /Library/Ruby/Gems/2.6.0/gems/clocale-0.0.4/lib/clocale.rb:15:in `<top (required)>'
	 1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/clocale-0.0.4/lib/clocale/clocale.bundle, 0x0009): missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/clocale-0.0.4/lib/clocale/clocale.bundle - /Library/Ruby/Gems/2.6.0/gems/clocale-0.0.4/lib/clocale/clocale.bundle (LoadError)
  • Relevant Issues : (none)
  • Relevant PRs : (none)
  • Type of issue :
    • Installation
    • Font-related
    • Feature request
    • Bug in existing feature
    • Developer mode : Code quality / Tests / Documentation

About this issue

Most upvoted comments

If you using Colorls on mac you can do the following

cd /usr/local/Cellar/ruby/x.x.x/bin   [my current version is x.x.x = 3.0.2]
./gem uninstall colorls 

it will ask you to remove the colorls then at the same directory

./gem install colorls 

Now, you can link your colorls as shown in my thread Step-3-

  • The problem is that you have two different (gem) package managers to the ruby, one comes with brew and another one installed by apple I think. this will cause the miss-aligned I always forget how to install colorls v

Did the above and I cannot get it to work.

Related to #425

Anyone have an idea on how to fix this?

Seems like you should rebuild / reinstall the clocale gem.