cloudnaut
cloudnaut

Reputation: 982

Build sqlcipher on ubuntu

Hi I'm trying to build sqlcipher on ubuntu (11.10 minimal). On Mac OS X I had no problems though.

I followed the instructions from sqlcipher.net. First step was configure. I tried to execute configure with the following command:

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

but I got the following error message: "configure: error: C compiler cannot create executables"

In the config.log some lines caught my eyes but I don't know how to fix it:

gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) 
configure:2544: $? = 0
configure:2551: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2555: $? = 4
configure:2578: checking for C compiler default output file name
configure:2600: gcc -DSQLITE_HAS_CODEC  -lcrypto conftest.c  >&5
/usr/bin/ld: cannot find -lcrypto
collect2: ld returned 1 exit status

Has anybody successfully build sqlcipher on ubuntu yet? Regards

Upvotes: 1

Views: 3071

Answers (1)

Nick Parker
Nick Parker

Reputation: 1388

You will need to install the GNU compiler toolchain in order to build from source. Execute the following command in a terminal.

$ sudo apt-get install build-essential

Upvotes: 1

Related Questions