看起来我的gcc出了故障。
当我尝试从PyPI安装软件包时,会出现以下错误:
./uwsgi.h:165:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^~~~~~~~~
1 error generated.
In file included from core/protocol.c:1:
./uwsgi.h:165:10: fatal error: 'stdio.h' file not found
#include <stdio.h>
^~~~~~~~~
1 error generated.
已安装XCode命令行工具:
➜ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
已安装来自brew的gcc:
➜ brew install gcc
Warning: gcc 8.2.0 is already installed and up-to-date
To reinstall 8.2.0, run `brew reinstall gcc`
当我尝试识别所使用的gcc版本时,我得到了
/usr/bin/gcc
。我认为这是XCode版本。但是在brew中没有gcc二进制文件:
➜ ls /usr/local/bin/gcc-*
/usr/local/bin/gcc-8 /usr/local/bin/gcc-ar-8 /usr/local/bin/gcc-nm-8 /usr/local/bin/gcc-ranlib-8
在这种情况下我该怎么办?如何修复gcc?
/usr/local/bin/gcc-8
- Mark SetchellXcode
并让其检查更新,还可以前往AppStore
检查更新。如果单击Apple菜单
->系统偏好设置
->软件更新
,还有一些新的花哨的软件更新
功能。请全部访问一次。 - Mark Setchell