Having trouble installing the Linguist dependencies #6017
-
Sincere apologies if this is the wrong place to ask (The Q&A description read "Ask the community for help", hence why I came here). I tried installing Linguist's dependencies so I could replace some outdated or even nonexistent grammars (e.g. GML simply uses a C++ grammar), but have had countless troubles in the past installing the dependencies, both with WSL and on an Ubuntu VM (I use Microsoft Windows nearly exclusively). I tried using Git Bash to run $ script/bootstrap
Fetching gem metadata from https://rubygems.org/.......
Resolving dependencies...
Using rake 13.0.6
Using public_suffix 4.0.7
Using addressable 2.8.0
Using bundler 2.2.29
Using byebug 11.1.3
Fetching charlock_holmes 0.7.7
Installing charlock_holmes 0.7.7 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
C:/Users/vande/Documents/GitHub/linguist/vendor/gems/ruby/3.0.0/gems/charlock_holmes-0.7.7/ext/charlock_holmes
C:/Ruby30-x64/bin/ruby.exe -I C:/Ruby30-x64/lib/ruby/3.0.0 -r
./siteconf20220814-165100-zyysdr.rb extconf.rb
checking for -licui18n... no
***************************************************************************************
*********** icu required (brew install icu4c or apt-get install libicu-dev)
***********
***************************************************************************************
*** 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=C:/Ruby30-x64/bin/$(RUBY_BASE_NAME)
--with-icu-dir
--without-icu-dir
--with-icu-include
--without-icu-include=${icu-dir}/include
--with-icu-lib
--without-icu-lib=${icu-dir}/lib
--with-icu-i18n-config
--without-icu-i18n-config
--with-pkg-config
--without-pkg-config
--with-icu-io-config
--without-icu-io-config
--with-icu-uc-config
--without-icu-uc-config
--with-icui18n-dir
--without-icui18n-dir
--with-icui18n-include
--without-icui18n-include=${icui18n-dir}/include
--with-icui18n-lib
--without-icui18n-lib=${icui18n-dir}/lib
--with-icui18nlib
--without-icui18nlib
To see why this extension failed to compile, please check the mkmf.log which can
be found here:
C:/Users/vande/Documents/GitHub/linguist/vendor/gems/ruby/3.0.0/extensions/x64-mingw32/3.0.0/charlock_holmes-0.7.7/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in
C:/Users/vande/Documents/GitHub/linguist/vendor/gems/ruby/3.0.0/gems/charlock_holmes-0.7.7
for inspection.
Results logged to
C:/Users/vande/Documents/GitHub/linguist/vendor/gems/ruby/3.0.0/extensions/x64-mingw32/3.0.0/charlock_holmes-0.7.7/gem_make.out
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:91:in `run'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/ext_conf_builder.rb:48:in `block in
build'
C:/Ruby30-x64/lib/ruby/3.0.0/tempfile.rb:317:in `open'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/ext_conf_builder.rb:28:in `build'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:157:in `build_extension'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:191:in `block in
build_extensions'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:188:in `each'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/ext/builder.rb:188:in `build_extensions'
C:/Ruby30-x64/lib/ruby/3.0.0/rubygems/installer.rb:828:in `build_extensions'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/rubygems_gem_installer.rb:66:in
`build_extensions'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/rubygems_gem_installer.rb:26:in
`install'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/source/rubygems.rb:199:in
`install'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/installer/gem_installer.rb:54:in
`install'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/installer/gem_installer.rb:16:in
`install_from_spec'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/installer/parallel_installer.rb:186:in
`do_install'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/installer/parallel_installer.rb:171:in
`install_serially'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/installer/parallel_installer.rb:97:in
`call'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/installer/parallel_installer.rb:71:in
`call'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/installer.rb:262:in
`install_in_parallel'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/installer.rb:209:in
`install'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/installer.rb:89:in
`block in run'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/process_lock.rb:12:in
`block in lock'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/process_lock.rb:9:in
`open'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/process_lock.rb:9:in
`lock'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/installer.rb:71:in
`run'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/installer.rb:23:in
`install'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/cli/install.rb:60:in
`run'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/cli.rb:253:in
`block in install'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/settings.rb:131:in
`temporary'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/cli.rb:252:in
`install'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/vendor/thor/lib/thor/command.rb:27:in
`run'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in
`invoke_command'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/vendor/thor/lib/thor.rb:392:in
`dispatch'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/cli.rb:31:in
`dispatch'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/vendor/thor/lib/thor/base.rb:485:in
`start'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/cli.rb:25:in
`start'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/exe/bundle:49:in `block
in <top (required)>'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/lib/bundler/friendly_errors.rb:128:in
`with_friendly_errors'
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/bundler-2.2.29/exe/bundle:37:in `<top
(required)>'
C:/Ruby30-x64/bin/bundle:23:in `load'
C:/Ruby30-x64/bin/bundle:23:in `<main>'
An error occurred while installing charlock_holmes (0.7.7), and Bundler cannot
continue.
In Gemfile:
github-linguist was resolved to 7.19.0, which depends on
charlock_holmes The
I'm not too well-versed in how Linguist works internally, so I don't have a clue what went wrong. All three methods I tried to run Linguist on Windows (WSL, Git Bash, Ubuntu VM through VirtualBox) failed, so I'm not really sure what to do next. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
🤔 the reason is quite clear:
You need to install this dependency. |
Beta Was this translation helpful? Give feedback.
🤔 the reason is quite clear: