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

Specify "snappy" using msys2_mingw_dependencies #51

Merged
merged 1 commit into from
Jan 7, 2024

Conversation

johnnyshields
Copy link
Contributor

@johnnyshields johnnyshields commented Jan 7, 2024

On Windows (using Windows Ruby Installer) the Snappy gem fails to install because it is missing the MSYS2 "snappy" package. There is an easy fix for this which can be done with spec.metadata['msys2_mingw_dependencies'] = 'snappy' in the gemfile.

The error on Windows is below:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: C:/ruby33/lib/ruby/gems/3.3.0/gems/snappy-0.3.0/ext
C:/ruby33/bin/ruby.exe extconf.rb
checking for pkg-config for libsnappy... not found
checking for -lsnappy... no
*** 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.

@miyucy miyucy merged commit 657bb10 into miyucy:master Jan 7, 2024
6 checks passed
@johnnyshields johnnyshields deleted the patch-3 branch January 11, 2024 03:49
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

Successfully merging this pull request may close these issues.

2 participants