Created
October 24, 2017 11:04
-
-
Save samonzeweb/05273724fcd3604011fa42984e5ff177 to your computer and use it in GitHub Desktop.
Testing godb on windows (gcc required for sqlite3)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Testing godb ( https://github.com/samonzeweb/godb ) on MS Windows | |
| (cgo/gcc related to github.com/mattn/go-sqlite3) | |
| Source : https://github.com/mattn/go-sqlite3/issues/212#issuecomment-185036480 | |
| Install MSYS2 (64 bits) | |
| - http://www.msys2.org/ | |
| - https://github.com/msys2/msys2/wiki/MSYS2-installation | |
| Start the MSYS Console (two times after install, please read the installation notes) and update packages : | |
| pacman -Syuu | |
| Start (again) MSYS Console and (use your GOPATH) ... | |
| pacman -S mingw-w64-x86_64-gcc | |
| pacman -S msys/git | |
| export PATH="/c/Go/bin:$PATH" | |
| export GOPATH=... | |
| go get -u github.com/mattn/go-sqlite3 | |
| Via CMD : | |
| go test -ldflags="-linkmode=internal -extld=none" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment