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

MacOS install failture #36

Open
zzj0402 opened this issue Dec 12, 2019 · 3 comments
Open

MacOS install failture #36

zzj0402 opened this issue Dec 12, 2019 · 3 comments

Comments

@zzj0402
Copy link

zzj0402 commented Dec 12, 2019

Reproduce

sudo gem install jaro_winkler

Environment

MacOS Mojave 10.14.5 (18F2059)

Output

Building native extensions. This could take a while...
ERROR:  Error installing jaro_winkler:
	ERROR: Failed to build gem native extension.

    current directory: /Library/Ruby/Gems/2.3.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -I /Library/Ruby/Site/2.3.0 -r ./siteconf20191212-98820-dz3tkp.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/jaro_winkler-1.5.4 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-18/2.3.0/jaro_winkler-1.5.4/gem_make.out
@tonytonyjan
Copy link
Owner

Hi @zzj0402,

Your issue might be caused by the building environment instead of jaro_winkler gem itself. I wonder if you are able to install any other native extension with your Mojave environment. For example:

sudo gem install nokogiri

@dennisvandehoef
Copy link

I switched from ruby 2.7.0 to 2.7.2 locally to fix it.
Maybe you can go to 2.3:latest?

@parluciaga
Copy link

It seems there's a problem with Xcode's ruby, which prevents this gem from installing. Symlinking the expected ruby version solved the problem for me. See https://stackoverflow.com/questions/63729369/commonmarker-gem-cannot-be-installed-needed-for-jekyll-macos

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

4 participants