go get 出错 cgo: exec gcc: exec: “gcc”: executable file not found in %PATH%

go get 出错 cgo: exec gcc: exec: “gcc”: executable file not found in %PATH%

安装这个  https://www.msys2.org/
打开
pacman -Syu
pacman -S mingw-w64-x86_64-toolchain
环境变量加 D:\msys2\mingw64\bin
重启

留下回复


Warning: is_dir(): open_basedir restriction in effect. File(/www/wwwroot/my-wordpress/index.php/2023/08/22/cgo-exec-gcc-exec-gcc-executable-file-not-found-in-path/) is not within the allowed path(s): (/www/wwwroot/my-wordpress/:/tmp/) in /www/wwwroot/my-wordpress/wp-content/plugins/matomo/classes/WpMatomo/AIBotTracking.php on line 175