Mac OS X
1. Install via homebrewn:
?
12 |
brew install pkgconfig brew install sqlite3 |
2. Install via port:
?
12 |
sudo port pkgconfig sudo port install sqlite3 |
3. If you encounter Pkg_config_path related problems after installation, you can refer to: Mac OS X Lion installation sqlite3 problem.
Ubuntu
Installation under Ubuntu is always simple enough to explode, execute the following command:
?
123 |
sudo apt-get install pkg-config sudo apt-get install sqlite3 sudo apt-get install libsqlite3-dev |
Windows
Installation under Windows is also very simple, just go to the SQLite3 download page, download the pre-compiled package DLL (SQLITE-DLL-WIN32-X86-XXX.ZIP) from Windows, and copy the DLL file inside to System32 Directory.
In addition, if you have installed the TMD version of the GCC compiler (http://tdm-gcc.tdragon.net/), then you will not have to install and can go directly to the next step!
finally , you can install the Go-sqlite3 package by going to the go get command:
?
1 |
go get github.com /mattn/go-sqlite3 |
Install Go third-party package Go-sqlite3