-
Notifications
You must be signed in to change notification settings - Fork 0
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
windows下跑不起来 #1
Comments
@daniel-007 你看到你的出错提示了吗?提示没有gcc编译器,因为sqlite3依赖cgo,所以需要gcc,你可以安装tdm-gcc:http://tdm-gcc.tdragon.net/download |
@daniel-007 改成mysql也是可以的,把models里的sqlite驱动去掉,换成mysql的即可~ |
@daniel-007 还有问题吗?如果没有问题了,issue将会关闭~ |
GetTasks()报错:panic: runtime error: invalid memory address or nil pointer dereference |
你干脆来个mysql版本的例子吧,我是windows环境。 |
修改成mysql数据库,GetTasks()里DB对象是空的。 |
@daniel-007 我写个通用的吧 等下传上来~ |
@insionng 好的。最好能整合个ORM框架,就是个基本的web单体应用的例子了,方便大家理解学习。 |
@daniel-007 已经用XORM重写了一个版本了,请更新最新版本~ |
@insionng 效率真高,赞! |
vuejsto/vendor/github.com/mattn/go-sqlite3
exec: "gcc": executable file not found in %PATH%
然后去看了:https://github.com/mattn/go-sqlite3/issues/212,好晕,然后我改成MySQL了。。。
求指导。。
The text was updated successfully, but these errors were encountered: