truecrypt最新版本7.1a的源代码下载地址在:http://www.truecrypt.org/downloads2 选择基于linux的。
实践环境:Win7操作系统+vmware7.0+ubuntu10.10开发版配置
根据truecrypt的说明,准备以下环境:
- GNU Make
- GNU C++ Compiler 4.0 or compatible
- NASM assembler 2.08 or compatible (x86/x64 architecture only)
- pkg-config
- wxWidgets 2.8 shared library and header files installed or
wxWidgets 2.8 library source code (available at http://www.wxwidgets.org)
- FUSE library and header files (available at http://fuse.sourceforge.net
and http://code.google.com/p/macfuse)
- RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki) 2.20
header files (available at ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20)
located in a standard include path or in a directory defined by the
environment variable 'PKCS11_INC'.
注:
l nasm:可以通过sudo apt-get install nasm下载安装。
l wxWidgets2.8:可以通过sudo apt-get install libwxbase2.8-dev和sudo apt-get install libwxgtk2.8-dev下载安装。
l FUSE:sudo apt-get install libfuse-dev
l PKCS:下载地址:ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/,在编译truecrypt的时候,需要pkcs11.h、pkcs11t.h、pkcs11f.h三个头文件,可以把他们复制到/usr/include目录下面。
转到truecrypt-7.1a-source源码目录,执行make命令。
基本按上面的走,不会出问题,make之后,在Main目录中就有truecrypt可执行文件。整个过程注意不要去从源码编译相关依赖项,比如wxWidgets,FUSE等,可能会遇到很多问题,用apt-get就是了,源码级的没有必要。