最近我在寻找在RHEL6操作系统上使用的密码管理软件,我很快使用Google找到了我想要的答案——KeePassX。可以参考Top Linux password managers和http://www.keepassx.org/。

从http://www.keepassx.org/获得tar.gz文件后,我认真阅读了INSTALL文档。

内容如下:

Installation instructions for *nix:
-----------------------------------
1. qmake-qt4 / qmake
   You have to use qmake of Qt >= 4.3.0, depending on your distro it is called qmake or qmake-qt4.
   By default KeePassX is installed to /usr, you can change that by adding PREFIX=[PATH] to the qmake command.
   You can also add DEBUG=1 to build KeePassX with debug symbols.
2. make
3. make install

由于对Qt编程不是很了解,因此这个文档我没有理解。

通过对ls /usr/lib64/qt4/bin/qmake-qt4 -al的命令的输出,我明白了INSTALL文档的第一行的意思。是要用户运行qmake-qt4 或者qmake这个命令。因为qmake-qt4的属性是执行文件。

在RHEL6中具体的安装keepassx的方法是:

tar -zxf keepassx-0.4.3.tar.gz

cd keepassx-0.4.3

qmake-qt4

make

make install

exit

编译过程有一点长,不要紧,最后都会安装成功。