连接sqlite3报错:go-sqlite3 requires cgo to work. This is a stub

报错信息:Windows解决办法1. 新建环境变量2. 出现新的报错3. 安装GCC3.1 进入Sqlite3官网3.2 找到Windows部分3.2 点击下载链接3.3 按自己喜好下载一个3.4 安装

到这里就成功解决了!!!

报错信息:

register db Ping default, Binary was compiled with ‘CGO_ENABLED=0’, go-sqlite3 requires cgo to work. This is a stub

Windows解决办法

1. 新建环境变量

2. 出现新的报错

报错信息:

Failed to build the application: # runtime/cgo cgo: C compiler “gcc” not found: exec: “gcc”: executable file not found in %PATH%

3. 安装GCC

3.1 进入Sqlite3官网

github

3.2 找到Windows部分

3.2 点击下载链接

3.3 按自己喜好下载一个

3.4 安装

到这里就成功解决了!!!

推荐文章

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: