【数据库连接】连接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

下载

安装



这样就可以解决了!

相关推荐
E***U9456 分钟前
MySQL自然语言处理应用
数据库·mysql
洛_尘1 小时前
MySQL 2:库的操作
数据库·mysql
码农101号1 小时前
Linux - 达梦数据库的安装
数据库
l1t2 小时前
使用DuckDB SQL求解Advent of Code 2024第9题 磁盘碎片整理
数据库·sql·算法·duckdb·advent of code
Z***u6592 小时前
MySQL物联网开发
数据库·mysql
Wang's Blog2 小时前
MongoDB小课堂: 容器化部署与操作综合指南
数据库·mongodb
IT小哥哥呀2 小时前
从零到NoSQL:一个动手的MongoDB教程(无需安装!)
数据库·mongodb·nosql·教程·初学者
J***79392 小时前
MySQL语音识别案例
数据库·mysql·语音识别
y***86692 小时前
MySQL语音识别开发
数据库·mysql·语音识别
用户12039112947262 小时前
AIGC时代的数据操作革命:用自然语言轻松玩转SQLite数据库
sqlite·aigc