欢迎光临散文网 会员登陆 & 注册

【Go】cgo: C compiler “gcc“ not found: exec: “gcc“: executable fil

2023-08-01 16:42 作者:青阳小栈  | 我要投稿

go 引用 go-sqlite3 模块时,报错:


# github.com/mattn/go-sqlite3

cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%


解决方案:

安装 TDM-GCC 即可

https://jmeubank.github.io/tdm-gcc/articles/2021-05/10.3.0-release


【Go】cgo: C compiler “gcc“ not found: exec: “gcc“: executable fil的评论 (共 条)

分享到微博请遵守国家法律