【数据库连接】连接sqlite3报错:go-sqlite3 requires cgo to work. This is a stub

报错信息

powershell 复制代码
register db Ping default, Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub

Windows解决办法

新建环境变量

新报错

powershell 复制代码
Failed to build the application: # runtime/cgo
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%

安装GCC

官网:https://gitcode.com/mattn/go-sqlite3/tree/master?utm_source=csdn_github_accelerator\&isLogin=1

下载

安装



这样就可以解决了!

相关推荐
蓝桉80211 分钟前
图片爬取案例
开发语言·数据库·python
Ljw...25 分钟前
DeepSeek+Kimi生成高质量PPT
数据库·c++·powerpoint·ppt·deepseek
m0_7482405432 分钟前
数据库操作与数据管理——Rust 与 SQLite 的集成
数据库·rust·sqlite
生产队队长34 分钟前
ThinkPHP:配置Redis并使用
android·数据库·redis
九亿少女无法触及的梦ى36 分钟前
uni-app集成sqlite
sqlite·uni-app
致奋斗的我们1 小时前
HAProxy介绍与编译安装
linux·汇编·数据库·mysql·青少年编程·haproxy·openeurler
偏右右1 小时前
UNION 联合查询
数据库·sql
Mr-Apple1 小时前
MySQL的Union和OR查询
android·数据库·mysql
YGGP2 小时前
【每日八股】Redis篇(二):数据结构
数据结构·数据库·redis
愉悦的麻婆豆腐2 小时前
Neo4j使用neo4j-admin导入csv数据方法
数据库·neo4j