【问题标题】:Unable to install Multicorn on mac无法在 mac 上安装 Multicorn
【发布时间】:2020-04-22 14:04:39
【问题描述】:

我正在尝试通过克隆 repo 在 mac os 10.13 上安装 Multicorn。在我的机器上,但出现错误,我还为 mac os 10.13 安装了 xcode。

➜  Multicorn git:(master) ✗ make && make install

我遇到的错误:

Python 版本是 2.7 clang -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-行参数 -O2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -一世。 -I./ -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -I/usr/local/Cellar/icu4c/64.2/include -isysroot /Applications/Xcode.app /Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/readline/include -I/Applications /Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/libxml2 -c -o src/errors.o src/errors.c clang:警告:没有这样的 sysroot 目录:'/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk' [-Wmissing-sysroot] 在 src/errors.c:15 包含的文件中: 在 src/multicorn.h:1 包含的文件中: /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:33:10:致命错误: 找不到“stdio.h”文件 包括 产生 1 个错误。 make: *** [src/errors.o] 错误 1

【问题讨论】:

    标签: python xcode macos multicorn


    【解决方案1】:

    我遇到了同样的问题并这样做是为了解决问题。

    export CPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/
    

    【讨论】:

      猜你喜欢
      • 2021-01-06
      • 2017-07-20
      • 2013-07-27
      • 2021-07-11
      • 2021-10-03
      • 2017-11-16
      • 2021-08-06
      • 2017-06-19
      • 2019-12-12
      相关资源
      最近更新 更多