KeePassX on CentOS

I’ve been playing with CentOS 5 lately, and really needed KeePassX on it. I ran into a few problems…

No rpms for Centos means you have to try and build from source. You also need qt-devel on the machine but it has to be version 4.3 or greater to compile.

So I had to enable atrpms-testing and use their bleeding edge qt44-devel.

This conflicts with qt-devel, so you need to ditch that first if it’s around. It also needed a few other dependencies that weren’t picked up.

# yum remove qt-devel qt4 dt4-devel
# yum install gcc-c++ libXtst-devel.x86_64 qt44 qt44-devel

For some reason, even though I didn’t have qt-devel on the machine, the command line yum found conflicts between atrpms-testing qt44-devel and qt-devel, and it took the GUI package manager to actually install it.

Once all that lot is in place, you should be able to unzip the tar and enter the keepassx directory.
# qmake-qt44
# make
# make install