安装sqlite3的时候,报:
XML/HTML代码
- /usr/local/include/stdint.h:2:10: error: #include nested too deeply
- #include <stddef.h>
- ^
- /usr/local/include/stdint.h:59:11: error: #include nested too deeply
- # include <stdint.h>
- ^
- /usr/local/include/stdint.h:72:11: error: #include nested too deeply
- # include <sys/types.h>
- ^
- /usr/local/include/stdint.h:76:10: error: #include nested too deeply
- #include <limits.h>
- ^
- /usr/local/include/stdint.h:82:11: error: #include nested too deeply
- # include <inttypes.h>
- ^
- 5 errors generated.
开始的时候以为cgoenabled=0结果 。go env的时候发现有打开。
又以为可能是xcode-select 没装,于是执行xcode-select --install 进行工具安装 。症状依然。最后找到这里:https://github.com/SOHU-Co/kafka-node/issues/881,看来有不少人有这个问题。只是有人说,brew doctor一下就行了。光执行,并没啥用
最后有一个人提出:
XML/HTML代码
- mkdir /tmp/includes
- brew doctor 2>&1 | grep "/usr/local/include" | awk '{$1=$1;print}' | xargs -I _ mv _ /tmp/includes
一下子全解决了!