2012-05-20 76 views
1

嗨,我試圖在Ubuntu上構建sqlcipher(11.10最小)。在Mac OS X上,我沒有問題。在Ubuntu上構建sqlcipher

我遵循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了嗎?問候

回答

1

您需要安裝GNU編譯器工具鏈才能從源代碼構建。在終端中執行以下命令。

$ sudo apt-get install build-essential