I came across this specifically for the golang library that I was trying to install. I was getting the following error when trying to run go get github.com/xeodou/go-sqlcipher :
# github.com/xeodou/go-sqlcipher project/src/github.com/xeodou/go-sqlcipher/sqlite3-binding.c:18280:10: fatal error: 'openssl/rand.h' file not found
I fixed this by adding the following to my bash profile:
export CGO_LDFLAGS="-L/usr/local/opt/openssl/lib" export CGO_CPPFLAGS="-I/usr/local/opt/openssl/include"
Hope this helps.
source share