export CGO_ENABLED=0 编译,可以运行,还是出错。提示:go-sqlite3 需要 CGO 才能工作。
root@MiWiFi:/opt/usr/cloudreve# ./cloudreve
___ _ _
/ __\ | ___ _ _ __| |_ __ _____ _____
/ / | |/ _ \| | | |/ _ | '__/ _ \ \ / / _ \
/ /___| | (_) | |_| | (_| | | | __/\ V / __/
\____/|_|\___/ \__,_|\__,_|_| \___| \_/ \___|
V3.6.2 Commit #a11f819 Pro=false
================================================
[Info] 2022-12-21 03:22:17 Initializing database connection...
[Panic] 2022-12-21 03:22:17 Failed to connect to database: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
panic: Failed to connect to database: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub