go-sqlcipher: failed to compile/run sample on Windows

382 Views Asked by At

I'm using Windows Server 2019 x64. Trying to leverage go-sqlcipher to manipulate sqlite database.

But it always fails when I try to run the sample.

# go run .\encrypto.go
# github.com/xeodou/go-sqlcipher
sqlite3-binding.c:24328:26: fatal error: openssl/rand.h: No such file or directory
compilation terminated.
1

There are 1 best solutions below

0
On

After searching around, still no way to solve it.

Until I changed to another repository

> go run .\main.go
{"name":"jason", "password": "1234"}{"name":"xeodou", "password": "123456"}