This is a creation in Article, where the information may have evolved or changed.
Mac OS X
1. Install via homebrewn:
Brew Install Pkgconfigbrew Install Sqlite3
2. Install via port:
sudo port pkgconfigsudo 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:
sudo apt-get install pkg-configsudo 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:
Go get github.com/mattn/go-sqlite3