ERROR: While executing gem ... (Gem::FilePermissionError)
SagarPrajapati98 opened this issue · comments
i am not able to install this package
Mac : 10.15
Xcode : 11.3
can you please let me know how to install this i am new to apple script
Please put entire command output of sudo gem install md2key
Building native extensions. This could take a while...
ERROR: Error installing md2key:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.6.0/gems/redcarpet-3.5.0/ext/redcarpet
/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 ./siteconf20200903-2879-1chcasu.rb extconf.rb
creating Makefile
current directory: /Library/Ruby/Gems/2.6.0/gems/redcarpet-3.5.0/ext/redcarpet
make "DESTDIR=" clean
current directory: /Library/Ruby/Gems/2.6.0/gems/redcarpet-3.5.0/ext/redcarpet
make "DESTDIR="
make: *** No rule to make target "/Applications/Xcode', needed by
autolink.o'. Stop.
make failed, exit code 2
Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/redcarpet-3.5.0 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/redcarpet-3.5.0/gem_make.out
hmmm interesting. I bet sudo gem install redcarpet
would also fail and that's the problem you're facing. Could you get help from https://github.com/vmg/redcarpet about sudo gem install redcarpet
failure first?
@k0kubun thanks let me check with redcarpet really appreciate
I think I have fixed this problem (on my system only XCode Version 12.4) with the redcarpet MakeFile which is looking for:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/universal-darwin19/ruby/config.h'
This is now in universal-darwin20/ruby/config.h
I made a symlink (on my system) universal-darwin19 -> universal-darwin20 and the redcarpet and the other GEMs compile
I can confirm md2key works after this fix
Thanks. Since it's about another gem and there's nothing to fix in this repository, let me close this issue.