title: Macos Catalina error after update: unable to run colorls
body: <p>Updating to macOS <strong>Catalina</strong> gives error on opening terminal</p>
  
  <pre><code>ERROR:  Can't find Ruby library file or shared library colorls
  usage: dirname path
  /Users/varunsukheja/.zshrc:source:91: no such file or directory: /tab_complete.sh
  </code></pre>
  
  <p>When I checked for the .zshrc file for line 91, I found below line</p>
  
  <pre><code>source $(dirname $(gem which colorls))/tab_complete.sh
  </code></pre>
  
  <p>And on checking <code>gem which colorls</code> I got below error</p>
  
  <pre><code>ERROR:  Can't find Ruby library file or shared library colorls
  </code></pre>
  
  <p>But when I check <code>which colorls</code> I get below path</p>
  
  <pre><code>/usr/local/bin/colorls
  </code></pre>
  
  <p>Also I tried installing colorls again using gem</p>
  
  <pre><code>Building native extensions. This could take a while...
  ERROR:  Error installing colorls:
      ERROR: Failed to build gem native extension.
  
      current directory: /Library/Ruby/Gems/2.6.0/gems/clocale-0.0.4/ext/clocale
  /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /Library/Ruby/Site/2.6.0 -r ./siteconf20191009-43313-16ndnb.rb extconf.rb
  mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/include/ruby.h
  
  You might have to install separate package for the ruby development
  environment, ruby-dev or ruby-devel for example.
  
  extconf failed, exit code 1
  
  Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/clocale-0.0.4 for inspection.
  Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/clocale-0.0.4/gem_make.out
  </code></pre>
  
  <p>Please help how to make it work.</p>