vmg / redcarpet

The safe Markdown parser, reloaded.
MIT License
4.99k stars 527 forks source link

Error installing redcarpet: #693

Open SagarPrajapati98 opened 4 years ago

SagarPrajapati98 commented 4 years ago
    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-3506-148i3c5.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

I am not able to install redcarpet mac os : 10.15 Xcode : 11.3 can you please help i am new to apple script

robin850 commented 3 years ago

Hello,

Sorry for the late reply but it looks like the compilation problem has nothing to do with Redcarpet but rather with your setup.

Are you able to install any other gem that requires native extension ? For instance, does running gem install ffi succeed ?

swnwtep commented 3 years ago

I had a similar redcarpet installation problem XCode Version 12.4 Mac OS10.15.7 (19H1217) The redcarpet MakeFile looks 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' On my system I have only universal-darwin20/ruby/config.h I solved the problem locally by creating a symlink universal-darwin19->universal-darwin20 and md2Key which depends on redcarpet would then install and run