athityakumar / athityakumar/colorls

How to install colorls inside WSL?

Open
#310 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
5.1k
Forks
396
PR merge metrics
No merged PRs in 30d

Description

setup:
1. Ubuntu (app is displayed as Ubuntu (not Ubuntu 18.04 or Ubuntu 16.04. just Ubuntu)) inside Windows AppStore
2. tried with "ruby" and "ruby-full" apt packages
3. tried with and without "-- --use-system-libraries"
-----------------
This is error I'm getting. Any ideas on how to fix? Thanks

➜ sudo gem install colorls -- --use-system-libraries
Building native extensions with: '--use-system-libraries'
This could take a while...
ERROR: Error installing colorls:
ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.5.0/gems/clocale-0.0.4/ext/clocale
/usr/bin/ruby2.5 -r ./siteconf20190817-3753-17c9swx.rb extconf.rb --use-system-libraries
checking for locale.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)2.5
/usr/lib/ruby/2.5.0/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/lib/ruby/2.5.0/mkmf.rb:590:in `try_cpp'
from /usr/lib/ruby/2.5.0/mkmf.rb:1097:in `block in have_header'
from /usr/lib/ruby/2.5.0/mkmf.rb:947:in `block in checking_for'
from /usr/lib/ruby/2.5.0/mkmf.rb:350:in `block (2 levels) in postpone'
from /usr/lib/ruby/2.5.0/mkmf.rb:320:in `open'
from /usr/lib/ruby/2.5.0/mkmf.rb:350:in `block in postpone'
from /usr/lib/ruby/2.5.0/mkmf.rb:320:in `open'
from /usr/lib/ruby/2.5.0/mkmf.rb:346:in `postpone'
from /usr/lib/ruby/2.5.0/mkmf.rb:946:in `checking_for'
from /usr/lib/ruby/2.5.0/mkmf.rb:1096:in `have_header'
from extconf.rb:9:in `'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/clocale-0.0.4/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.5.0/gems/clocale-0.0.4 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/clocale-0.0.4/gem_make.out

Contributor guide

Open the contributing guide

Research direction

Reproduce the failed `sudo gem install colorls -- --use-system-libraries` command in Ubuntu under WSL, then inspect the referenced `mkmf.log` and `gem_make.out` files. Determine whether the missing development tools or headers explain the `clocale` native-extension failure; done means documenting a verified installation path or a confirmed project-side fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby, ubuntu
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.