Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIoT在linux下运行报go-sqlite3错误 #9

Open
goodlook18 opened this issue Aug 19, 2019 · 5 comments
Open

SIoT在linux下运行报go-sqlite3错误 #9

goodlook18 opened this issue Aug 19, 2019 · 5 comments

Comments

@goodlook18
Copy link

Error: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
SIoT版本,1.1,1.2
运行环境,CentOS Linux release 7.6.1810 (Core)

@zengleyi
Copy link

Error: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
确实会存在这个·问题,要是能够提供源码就好了

@zengleyi
Copy link

我在本地(ubuntu)和阿里云服务器(centos)上都会报这个问题。

@peter24288
Copy link

我也遇到了,怎么解决的?

@zhoujinshi
Copy link

[error] failed to initialize database, got error Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stubpanic: failed to connect database

出现错误了设置: go env -w CGO_ENABLED=1

@zhoujinshi
Copy link

建议直接运行 docker 版本
https://hub.docker.com/r/cnbbx/siot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants