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

windows下跑不起来 #1

Closed
daniel-007 opened this issue Nov 24, 2016 · 10 comments
Closed

windows下跑不起来 #1

daniel-007 opened this issue Nov 24, 2016 · 10 comments

Comments

@daniel-007
Copy link

daniel-007 commented Nov 24, 2016

vuejsto/vendor/github.com/mattn/go-sqlite3

exec: "gcc": executable file not found in %PATH%
然后去看了:https://github.com/mattn/go-sqlite3/issues/212,好晕,然后我改成MySQL了。。。
求指导。。

@insionng
Copy link
Contributor

@daniel-007 你看到你的出错提示了吗?提示没有gcc编译器,因为sqlite3依赖cgo,所以需要gcc,你可以安装tdm-gcc:http://tdm-gcc.tdragon.net/download

@insionng
Copy link
Contributor

@daniel-007 改成mysql也是可以的,把models里的sqlite驱动去掉,换成mysql的即可~

@insionng
Copy link
Contributor

@daniel-007 还有问题吗?如果没有问题了,issue将会关闭~

@daniel-007
Copy link
Author

GetTasks()报错:panic: runtime error: invalid memory address or nil pointer dereference

@daniel-007
Copy link
Author

你干脆来个mysql版本的例子吧,我是windows环境。

@daniel-007
Copy link
Author

修改成mysql数据库,GetTasks()里DB对象是空的。

@insionng
Copy link
Contributor

@daniel-007 我写个通用的吧 等下传上来~

@daniel-007
Copy link
Author

@insionng 好的。最好能整合个ORM框架,就是个基本的web单体应用的例子了,方便大家理解学习。

@insionng
Copy link
Contributor

@daniel-007 已经用XORM重写了一个版本了,请更新最新版本~

@daniel-007
Copy link
Author

@insionng 效率真高,赞!

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

No branches or pull requests

2 participants