從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
編譯過程有一點長,不要緊,最後都會安裝成功。
本文轉自 urey_pp 51CTO部落格,原文連結:http://blog.51cto.com/dgd2010/747942,如需轉載請自行聯系原作者