1

i have a problem in configuring SQLCipher:
in dynamic linking
./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto"
i receive this error: checking whether the C compiler works... no
and in static linking
./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="/usr/local/openssl/lib/libcrypto.a"
this error: configure: error: Library crypto not found. Install openssl!"

for static method, i built last version of openssl

what's wrong?

Amir
  • 1,250
  • 18
  • 22

2 Answers2

5

I had the same problem, in Ubuntu 14.04.02... Openssl was already installed but I was missing some header files. Try with

sudo apt-get install libssl-dev

and then

./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto"

that worked for me.

Diego Villa
  • 131
  • 5
  • tnx this time i got "E: Unable to locate package libssl-dev" – Amir Mar 13 '15 at 15:30
  • Wouldn’t installing the ubuntu package of sqlcipher fit for you? Didn’t tell before because may be you are looking for an specific version... if not: "sudo apt-get install sqlcipher" – Diego Villa Mar 13 '15 at 19:04
  • Worked for me. Thank You Diego ;) i was in dead end! – Amir Mar 13 '15 at 22:36
4

My problem solved!
sudo apt-get update
sudo apt-get install sqlcipher
thanks to Diego

Amir
  • 1,250
  • 18
  • 22