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

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

报错信息:

register db Ping default, Binary was ***piled 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 ***piler “g***” not found: exec: “g***”: executable file not found in %PATH%

3. 安装G***

3.1 进入Sqlite3官网

  • github

3.2 找到Windows部分

3.2 点击下载链接

3.3 按自己喜好下载一个

3.4 安装



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

转载请说明出处内容投诉
CSS教程_站长资源网 » 连接sqlite3报错:go-sqlite3 requires cgo to work. This is a stub

发表评论

欢迎 访客 发表评论

一个令你着迷的主题!

查看演示 官网购买