报错内容:

# runtime/cgo
cgo-builtin-prolog:1:10: fatal error: cannot open file '/usr/local/include/stddef.h': Permission denied
#include <stddef.h> /* for ptrdiff_t and size_t below */
         ^
1 error generated.

但是该目录里好像没有这个文件:

❯ ls -al /usr/local/include/stddef.h
ls: /usr/local/include/stddef.h: No such file or directory

不用在意。

解决方式:

sudo chown -R $(whoami) /usr/local/include
https://youtrack.jetbrains.com/issue/GO-13382/Debugging-Go-pr...

liyiyang
76 声望2 粉丝

引用和评论

0 条评论