1

嗨,我正在尝试在 ubuntu (11.10 minimum) 上构建 sqlcipher。不过在 Mac OS XI 上没有问题。

我按照 sqlcipher.net 的说明进行操作。第一步是配置。我尝试使用以下命令执行配置:

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

但我收到以下错误消息:“配置:错误:C 编译器无法创建可执行文件”

在 config.log 中,一些行引起了我的注意,但我不知道如何解决它:

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

有人在 ubuntu 上成功构建 sqlcipher 了吗?问候

4

1 回答 1

1

您需要安装 GNU 编译器工具链才能从源代码构建。在终端中执行以下命令。

$ sudo apt-get install build-essential
于 2012-05-21T13:21:31.007 回答