Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing error on windows #169

Open
mahfuzkhan12 opened this issue Aug 10, 2023 · 2 comments
Open

Installing error on windows #169

mahfuzkhan12 opened this issue Aug 10, 2023 · 2 comments

Comments

@mahfuzkhan12
Copy link

$ gem install charlock_holmes
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR: Error installing charlock_holmes:
ERROR: Failed to build gem native extension.

current directory: C:/ruby-2.6.6-1-x64/lib/ruby/gems/2.6.0/gems/charlock_holmes-0.7.7/ext/charlock_holmes

C:/ruby-2.6.6-1-x64/bin/ruby.exe -I C:/ruby-2.6.6-1-x64/lib/ruby/site_ruby/2.6.0 -r ./siteconf20230811-11676-9k390l.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:/ruby-2.6.6-1-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-icui18nlib
--without-icui18nlib

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

C:/ruby-2.6.6-1-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/charlock_holmes-0.7.7/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in C:/ruby-2.6.6-1-x64/lib/ruby/gems/2.6.0/gems/charlock_holmes-0.7.7 for inspection.
Results logged to C:/ruby-2.6.6-1-x64/lib/ruby/gems/2.6.0/extensions/x64-mingw32/2.6.0/charlock_holmes-0.7.7/gem_make.out

@Jbleezy
Copy link

Jbleezy commented Mar 17, 2024

I'm getting the same error.

@casper
Copy link

casper commented Sep 15, 2024

Found solution here:
https://stackoverflow.com/a/76138522/823617

ridk exec pacman -S mingw-w64-x86_64-icu icu-devel icu
ridk enable
gem install charlock_holmes -- --with-icui18nlib=icuin --with-icudatalib=icudt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants