我试图在Mojave beta上安装jazzy
,但是失败了,因为我得到了这个错误
MacBook-Pro-Damian:~ damiandudycz$ sudo gem install jazzy
Password:
Building native extensions. This could take a while...
ERROR: Error installing jazzy:
ERROR: Failed to build gem native extension.
current directory: /Library/Ruby/Gems/2.3.0/gems/redcarpet-3.4.0/ext/redcarpet
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby -r ./siteconf20180821-24471-1py1trb.rb extconf.rb
creating Makefile
current directory: /Library/Ruby/Gems/2.3.0/gems/redcarpet-3.4.0/ext/redcarpet
make "DESTDIR=" clean
current directory: /Library/Ruby/Gems/2.3.0/gems/redcarpet-3.4.0/ext/redcarpet
make "DESTDIR="
make: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/universal-darwin18/ruby/config.h', needed by `autolink.o'. Stop.
make failed, exit code 2
Gem files will remain installed in /Library/Ruby/Gems/2.3.0/gems/redcarpet-3.4.0 for inspection.
Results logged to /Library/Ruby/Gems/2.3.0/extensions/universal-darwin-18/2.3.0/redcarpet-3.4.0/gem_make.out
有人能帮我解决这个问题吗?或者可能有其他方法安装不带gem的
jazzy
?或者你知道其他好的
swift
项目文档生成器吗? 最佳答案
为我做了这件事。
之后我可以通过xcode-select --install
安装jazzy
关于swift - 无法在Mojave上安装jazzy,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/51946512/