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

doing failed to install on macOS Monterey 12.0.2 #125

Closed
TribuneX opened this issue Nov 20, 2021 · 4 comments
Closed

doing failed to install on macOS Monterey 12.0.2 #125

TribuneX opened this issue Nov 20, 2021 · 4 comments
Labels

Comments

@TribuneX
Copy link

Executing sudo gem install doing leads to the following error on my machine (macOS Monterey 12.0.2):

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

    current directory: /Library/Ruby/Gems/2.6.0/gems/amatch-0.4.0/ext
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20211121-5453-1vbqjea.rb extconf.rb
creating Makefile

current directory: /Library/Ruby/Gems/2.6.0/gems/amatch-0.4.0/ext
make "DESTDIR=" clean

current directory: /Library/Ruby/Gems/2.6.0/gems/amatch-0.4.0/ext
make "DESTDIR="
make: *** No rule to make target `/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/universal-darwin21/ruby/config.h', needed by `amatch_ext.o'.  Stop.

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/amatch-0.4.0 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-21/2.6.0/amatch-0.4.0/gem_make.out

My ruby version:

❯ ruby -v                                          
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.x86_64-darwin21]

Any hints what's wrong here? Thanks.

@ttscoff
Copy link
Owner

ttscoff commented Nov 21, 2021

I just tested a gem install on my own copy of Monterey with the system ruby (2.6) and it succeeded, so we just have to figure out the difference. Do you happen to have the Xcode command line tools installed?

@ttscoff ttscoff added the bug label Nov 21, 2021
@can-I-do
Copy link

can-I-do commented Nov 22, 2021

same error for me on BigSur, so it is not Monterey related!
I fixed it with
sudo xcode-select -switch /

@ttscoff
Copy link
Owner

ttscoff commented Nov 22, 2021

I've removed the amatch requirement from 2.0.13, which should circumvent this error (along with the need for the command line tools/make to install).

@ttscoff ttscoff closed this as completed Nov 22, 2021
@TribuneX
Copy link
Author

Thanks. Worked for me now!

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

No branches or pull requests

3 participants