Installation of KeePassX Password Manager on Fedora Linux

KeePassX is a cross platform password manager to allow users to store and organize password and keep them safe using advanced encryption techniques. This guide describes how to install KeePassX password manager on Fedora Linux.

KeePassX Download

First download source code from the KeePassX official download page. Example:

$ wget http://www.keepassx.org/releases/keepassx-0.4.3.tar.gz

Installation Prerequisites

In the next step we are going to install all prerequisites in order to success fly compile KeePassX:

$ sudo yum install qt-devel qt-config gcc-c++ libXtst-devel

Compilation and Installation

At this point we are ready to decompress KeePassX. Please note your version maybe different:

$ tar xzf keepassx-0.4.3.tar.gz 
$ cd keepassx-0.4.3/

and compile using make:



$ qmake-qt4 
Project MESSAGE: See 'INSTALL' for configuration options.
Project MESSAGE: Install Prefix: /usr
Project MESSAGE: *** Makefile successfully generated.
Project MESSAGE: *** Start make now.
$ make

If everything went well now you should have a compiled version of KeePassX available for installation.

$ sudo make install

The above will install KeePassX on your system and should be able to start it from command line using the keepassx command:

$ keepassx

keepassX linux installation



Troubleshooting

During the installation I came across compilation error which I believe is bug as getpid definition is missing.

lib/random.cpp: In function ‘void initStdRand()’:
lib/random.cpp:98:19: error: ‘getpid’ was not declared in this scope
  stream << getpid();

To fix this problem open src/lib/random.cpp and add:

#include <unistd.h> 

somewhere at the beginning of this document. For example right after #include <QTime>