I would like to install colorls . It looks handy:

I tried to follow the installation instructions. However, they don't seem to be made for Ubuntu.
First, because gem
did not exist, I had to run sudo apt install ruby-rubygems
.
Now, I experience this error when I try to install it:
$ gem install colorls
Fetching colorls-1.4.6.gem
...
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /var/lib/gems/3.0.0 directory.
So I try using the --user-install
flag:
$ gem install --user-install colorls
WARNING: You don't have /home/flimm/.local/share/gem/ruby/3.0.0/bin in your PATH,
gem executables will not run.
Successfully installed unicode-display_width-2.4.2
Successfully installed rainbow-3.1.1
Successfully installed manpages-0.6.1
Successfully installed filesize-0.2.0
Building native extensions. This could take a while...
ERROR: Error installing colorls:
ERROR: Failed to build gem native extension.
current directory: /home/flimm/.local/share/gem/ruby/3.0.0/gems/clocale-0.0.4/ext/clocale
/usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20230407-19626-voy41j.rb extconf.rb
mkmf.rb can't find header files for ruby at /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 /home/flimm/.local/share/gem/ruby/3.0.0/gems/clocale-0.0.4 for inspection.
Results logged to /home/flimm/.local/share/gem/ruby/3.0.0/extensions/x86_64-linux/3.0.0/clocale-0.0.4/gem_make.out
How do I install (and uninstall) colorls on Ubuntu?