I found that all my Go sqlite3 code no longer working for me now.


For example, here is a simple Go sqlite3 code, go-sqlite3-test.go 
<https://github.com/suntong/lang/blob/master/lang/Go/src/db/sqlite/go-sqlite3-test.go>,
 
that's been working fine for years. But with my current go1.9.2, it is no 
longer working. (Confirmed from another machine that *go1.8.3* + lastest 
github.com/mattn/go-sqlite3 works just fine. Both machines have sqlite3 and 
libsqlite3-0:amd64 installed).


Using go1.9.2, downloading the code into /tmp/go-sqlite3-test, I got:


$ go run go-sqlite3-test.go # pkg-config --cflags sqlite3
pkg-config: exec: "pkg-config": executable file not found in $PATH


Having installed pkg-config, in turn I got:


$ go run go-sqlite3-test.go # pkg-config --cflags sqlite3Package sqlite3 was 
not found in the pkg-config search path.Perhaps you should add the directory 
containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sqlite3' found
pkg-config: exit status 1

$ sudo pkg-config --cflags sqlite3 
Package sqlite3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sqlite3' found

$ go build 
# pkg-config --cflags sqlite3
Package sqlite3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sqlite3.pc'
to the PKG_CONFIG_PATH environment variableNo package 'sqlite3' found
pkg-config: exit status 1


How to get my Go sqlite3 code working again? Thx


-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to