代码之家  ›  专栏  ›  技术社区  ›  Damian Dudycz

无法在莫哈韦安装jazzy

  •  0
  • Damian Dudycz  · 技术社区  · 6 年前

    我想安装 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
    

    爵士乐

    或者你知道其他好的文档生成器 swift

    2 回复  |  直到 6 年前
        1
  •  1
  •   Hugo B.    6 年前

    xcode-select --install 为我做了这件事。
    [sudo] gem install jazzy

        2
  •  1
  •   Jin    5 年前

    试试这个

    sudo gem install -n /usr/local/bin jazzy
    
        3
  •  0
  •   itsshash1    6 年前

    我不知道为什么这样做对我有用,但它确实起了作用。我想它是从.pkg手动安装命令行工具的

    sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /