KeePassX

Installation (source code tarball)

Change to the directory where source code tarball has been saved in and unpack it as follows:

tar xzvf KeePassX-{version}.tar.gz

Change location into the created directory:

cd keepassx-{version}

Depending on your Linux distribution, execute ‘qmake-qt4′ or ‘qmake’.

qmake-qt4 / qmake

Under Unix/X11 the project is configured to install KeePassX in ‘/usr/local’. A different installation directory can be specified by passing a parameter ‘PREFIX’ to ‘qmake’, e.g.:

qmake PREFIX=/{install-directory}

To start the compiling process run ‘make’

make

Now, to install KeePassX on your system execute the following command:

make install

In case you are not signed in as root or if you do not have access rights to the installation directory, then you have to execute the previos command with root access rights

sudo make install

Comments (32)

  1. andrei - 2007-08-19

    on reasonably up to date Debian I got build failure:

    usr/share/qt3/bin/uic forms/EditGroupDlg.ui -o ../build/ui/EditGroupDlg.h
    uic: File generated with too recent version of Qt Designer (4.0 vs. 3.3.7)

  2. dopey - 2007-08-20

    same as above here. Using debian etch.

  3. jordan - 2007-08-24

    I’m also having the same problem on Slackware 11.

  4. john - 2007-08-29

    I got it to work under Debian etch as follows:
    1. Install qt4-dev, qt4-dev-tools, qt4-designer (apt-get install qt4-dev qt4-dev-tools qt4-designer)
    2. untarzip the package as stated elsewhere
    3. run qmake-qt4 – i also had to cd into the src directory, delete the Makefile that was created and run qmake-qt4 again from there (ie: qmake-qt4; cd src; rm Makefile ; qmake-qt4 ; cd ..
    4. this still gave an error about libXtst. I’m sure the better way to fix it would be in the source code but as I am rather lazy, I simply did a ln -s /usr/lib/libXtst.so.6 /usr/lib/libXtst.so (as root)
    5. make
    6. (as root) make install
    7. it works

  5. shit shit shit - 2007-09-02

    I am totally FUCKED UP as I need to use this tool here and now with a debian etch an I CAn NOT GET IT TO RUN!!! WAHT A GRAND FUCKUP!!! my windows box is miles away and I need the data and keepassx DOES NOT RUN ON DEBIAN. Could the Author PLEEEEASE or anybody else be so kind and provide a working package for etch! Thanks!!!

  6. frank - 2007-09-04

    @ john

    thank you very, very, v…. much! you saved my day

  7. frank - 2007-09-04

    @shit shit shit
    try johns way. it works!

  8. Marc - 2007-09-05

    @John: Thanks a lot, works fine on Debian Etch (AMD64)…

  9. Igor-san - 2007-11-17

    For John:
    <>
    ________________
    I simple install libxtst-dev (apt-get intsall libxtst-dev), and it works. (sorry my poor english)

  10. nocti - 2007-11-26

    debian etch says it doesn’t have qt4-dev?

  11. martin - 2008-01-31

    I can`t get it working on our university workstations. They don`t have libxinerama installed, so the binary package doesn`t work, and they also don`t have the qt4-dev package. I think the system is Debian-based.
    Is there a way to install these libs in my home folder, without needing root privileges? Or is there a more portable version of keepass that might work (a command-line version would do)?

  12. martin - 2008-01-31

    Correction: libxinerama is available, but libQtXml is missing. I forgot to set the library path in the keepass.sh file.

  13. axl - 2008-02-04

    I’m trying to install on debian etch.
    But I can’t install qt4-dev. It complains about plenty of unmet dependencies.
    Can someone provide the step by step procedure ?
    Thanks

  14. Farside - 2008-02-11

    This is what I get
    root@odie:/usr/local/src/keepassx-0.2.2# make
    cd src && make -f Makefile
    make[1]: Entering directory `/usr/local/src/keepassx-0.2.2/src’
    Makefile:635: warning: overriding commands for target `../build/EditGroupDlg.o’
    Makefile:451: warning: ignoring old commands for target `../build/EditGroupDlg.o’
    Makefile:646: warning: overriding commands for target `../build/SearchDlg.o’
    Makefile:462: warning: ignoring old commands for target `../build/SearchDlg.o’
    Makefile:652: warning: overriding commands for target `../build/AboutDlg.o’
    Makefile:442: warning: ignoring old commands for target `../build/AboutDlg.o’
    Makefile:659: warning: overriding commands for target `../build/SettingsDlg.o’
    Makefile:469: warning: ignoring old commands for target `../build/SettingsDlg.o’
    Makefile:669: warning: overriding commands for target `../build/SimplePasswordDlg.o’
    Makefile:492: warning: ignoring old commands for target `../build/SimplePasswordDlg.o’
    Makefile:677: warning: overriding commands for target `../build/DatabaseSettingsDlg.o’
    Makefile:477: warning: ignoring old commands for target `../build/DatabaseSettingsDlg.o’
    Makefile:685: warning: overriding commands for target `../build/PasswordDlg.o’
    Makefile:485: warning: ignoring old commands for target `../build/PasswordDlg.o’
    Makefile:698: warning: overriding commands for target `../build/EditEntryDlg.o’
    Makefile:505: warning: ignoring old commands for target `../build/EditEntryDlg.o’
    Makefile:708: warning: overriding commands for target `../build/PasswordGenDlg.o’
    Makefile:515: warning: ignoring old commands for target `../build/PasswordGenDlg.o’
    Makefile:716: warning: overriding commands for target `../build/SelectIconDlg.o’
    Makefile:523: warning: ignoring old commands for target `../build/SelectIconDlg.o’
    Makefile:804: warning: overriding commands for target `../build/moc_EditGroupDlg.o’
    Makefile:743: warning: ignoring old commands for target `../build/moc_EditGroupDlg.o’
    Makefile:811: warning: overriding commands for target `../build/moc_SearchDlg.o’
    Makefile:750: warning: ignoring old commands for target `../build/moc_SearchDlg.o’
    Makefile:815: warning: overriding commands for target `../build/moc_AboutDlg.o’
    Makefile:738: warning: ignoring old commands for target `../build/moc_AboutDlg.o’
    Makefile:818: warning: overriding commands for target `../build/moc_SettingsDlg.o’
    Makefile:753: warning: ignoring old commands for target `../build/moc_SettingsDlg.o’
    Makefile:824: warning: overriding commands for target `../build/moc_SimplePasswordDlg.o’
    Makefile:766: warning: ignoring old commands for target `../build/moc_SimplePasswordDlg.o’
    Makefile:830: warning: overriding commands for target `../build/moc_DatabaseSettingsDlg.o’
    Makefile:759: warning: ignoring old commands for target `../build/moc_DatabaseSettingsDlg.o’
    Makefile:834: warning: overriding commands for target `../build/moc_PasswordDlg.o’
    Makefile:763: warning: ignoring old commands for target `../build/moc_PasswordDlg.o’
    Makefile:841: warning: overriding commands for target `../build/moc_EditEntryDlg.o’
    Makefile:773: warning: ignoring old commands for target `../build/moc_EditEntryDlg.o’
    Makefile:849: warning: overriding commands for target `../build/moc_PasswordGenDlg.o’
    Makefile:781: warning: ignoring old commands for target `../build/moc_PasswordGenDlg.o’
    Makefile:855: warning: overriding commands for target `../build/moc_SelectIconDlg.o’
    Makefile:787: warning: ignoring old commands for target `../build/moc_SelectIconDlg.o’
    Makefile:903: warning: overriding commands for target `../build/moc/moc_EditGroupDlg.cpp’
    Makefile:870: warning: ignoring old commands for target `../build/moc/moc_EditGroupDlg.cpp’
    Makefile:906: warning: overriding commands for target `../build/moc/moc_SearchDlg.cpp’
    Makefile:873: warning: ignoring old commands for target `../build/moc/moc_SearchDlg.cpp’
    Makefile:909: warning: overriding commands for target `../build/moc/moc_AboutDlg.cpp’
    Makefile:867: warning: ignoring old commands for target `../build/moc/moc_AboutDlg.cpp’
    Makefile:912: warning: overriding commands for target `../build/moc/moc_SettingsDlg.cpp’
    Makefile:876: warning: ignoring old commands for target `../build/moc/moc_SettingsDlg.cpp’
    Makefile:918: warning: overriding commands for target `../build/moc/moc_SimplePasswordDlg.cpp’
    Makefile:885: warning: ignoring old commands for target `../build/moc/moc_SimplePasswordDlg.cpp’
    Makefile:921: warning: overriding commands for target `../build/moc/moc_DatabaseSettingsDlg.cpp’
    Makefile:879: warning: ignoring old commands for target `../build/moc/moc_DatabaseSettingsDlg.cpp’
    Makefile:924: warning: overriding commands for target `../build/moc/moc_PasswordDlg.cpp’
    Makefile:882: warning: ignoring old commands for target `../build/moc/moc_PasswordDlg.cpp’
    Makefile:927: warning: overriding commands for target `../build/moc/moc_EditEntryDlg.cpp’
    Makefile:888: warning: ignoring old commands for target `../build/moc/moc_EditEntryDlg.cpp’
    Makefile:930: warning: overriding commands for target `../build/moc/moc_PasswordGenDlg.cpp’
    Makefile:891: warning: ignoring old commands for target `../build/moc/moc_PasswordGenDlg.cpp’
    Makefile:933: warning: overriding commands for target `../build/moc/moc_SelectIconDlg.cpp’
    Makefile:894: warning: ignoring old commands for target `../build/moc/moc_SelectIconDlg.cpp’
    /usr/lib/qt/bin/uic forms/SettingsDlg.ui -o ../build/ui/SettingsDlg.h
    uic: File generated with too recent version of Qt Designer (4.0 vs. 3.3.8)
    make[1]: *** [../build/ui/SettingsDlg.h] Error 1
    make[1]: Leaving directory `/usr/local/src/keepassx-0.2.2/src’
    make: *** [sub-src] Error 2

    Slack 12.0

    Help!!

  15. bdmayes - 2008-02-28

    Farside,

    It looks like the problem might be related to the version of Qt that you are using:

    uic: File generated with too recent version of Qt Designer (4.0 vs. 3.3.8)

    That error there leads me to believe that you are running Qt version 3.3.8 but it needs something 4.0 or higher. You might need to get the latest version of the Qt libs from http://www.trolltech.com. First run “which qmake” to find out the path it’s running from which should probably include the version and/or run a “qmake -v” to get the version number. For example, here’s my output:

    adamwest:~ bmayes$ which qmake
    /usr/local/Trolltech/Qt-4.3.3/bin/qmake
    adamwest:~ bmayes$ qmake -v
    QMake version 2.01a
    Using Qt version 4.3.3 in /usr/local/Trolltech/Qt-4.3.3/lib

  16. Farside - 2008-03-01

    Well I installed the qt4-4.3.3 and now I get this

    root@odie:/usr/local/src/keepassx-0.2.2# qmake
    bash: qmake: command not found
    root@odie:/usr/local/src/keepassx-0.2.2#

    qmake is not found!!

  17. Michael Ramm - 2008-03-07

    @john thanks for the write up. Worked on Ubuntu 7.10.

  18. mess-mate - 2008-03-20

    Sorry, but can’t get it compile on debian/etch.
    qt4-dev => libqt4-dev (4.2.1-2+etch1)
    must be version 4.3xxx ?

  19. diogenes - 2008-08-03

    I can´t compile that under debian/etch!

    diogenes@blackbox:~/downloads/keepassx-0.3.2$ qmake-qt4
    Project MESSAGE: See ‘INSTALL’ for configuration options.
    Project MESSAGE: Install Prefix: /usr
    Project MESSAGE: *** Makefile successfully generated.
    Project MESSAGE: *** Start make now.
    diogenes@blackbox:~/downloads/keepassx-0.3.2$ make
    cd src && make -f Makefile
    make[1]: Entering directory `/home/diogenes/downloads/keepassx-0.3.2/src’
    g++ -c -include ../build/keepassx -pipe -O2 -w -D_REENTRANT -DAUTOTYPE -DGLOBAL_AUTOTYPE -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -Ilib -Icrypto -Iplugins/interfaces -Iexport -Iimport -Idialogs -I../build/ui -I../build/moc -o ../build/AutoType_X11.o lib/AutoType_X11.cpp
    ../build/ui/ui_MainWindow.h: In member function ‘void Ui_MainWindow::setupUi(QMainWindow*)’:
    ../build/ui/ui_MainWindow.h:282: error: ‘class QTextBrowser’ has no member named ‘setOpenLinks’
    make[1]: *** [../build/AutoType_X11.o] Fehler 1
    make[1]: Leaving directory `/home/diogenes/downloads/keepassx-0.3.2/src’
    make: *** [sub-src-make_default] Fehler 2
    diogenes@blackbox:~/downloads/keepassx-0.3.2$

    I tried Johns Method, but it didn´t work. Can you help me, thx.

    lg diogenes

  20. mjb - 2008-09-07

    Hi,

    I get the same error as diogenes except on Centos 5.2. (keepassx-0.3.3)

    ../build/AutoType_X11.o lib/AutoType_X11.cpp
    ../build/ui/ui_MainWindow.h: In member function ‘void Ui_MainWindow::setupUi(QMainWindow*)’:
    ../build/ui/ui_MainWindow.h:282: error: ‘class QTextBrowser’ has no member named ’setOpenLinks’
    make[1]: *** [../build/AutoType_X11.o] Error 1

    cheers
    mjb

  21. max - 2008-09-29

    Hi,
    nearly the same for me, trying on debian etch.

    ../build/ui/ui_MainWindow.h: In member function ‘void Ui_MainWindow::setupUi(QMainWindow*)’:
    ../build/ui/ui_MainWindow.h:282: error: ‘class QTextBrowser’ has no member named ‘setOpenLinks’
    make[1]: *** [../build/AutoType_X11.o] Fehler 1
    make[1]: Leaving directory `/home/max/keepassx-0.3.3/src’
    make: *** [sub-src-make_default] Fehler 2

    cheers
    max

  22. ray - 2008-10-24

    Hi,
    I compiled it on debian etch/stable.
    You must patch some files to work with qt4.2.1 (on etch and perhaps newer qt releases).
    Uncomment all the “setOpenLinks”.
    Later you will get some errors in cpp files with members named “exec”.
    “drag->exec” should be renamed to “drag->start”

  23. Joergk - 2008-12-08

    Hi,

    I have tried to compile keepass 0.3.4 on debian etch/stable.

    $qmake-qt4

    $make
    cd src && make -f Makefile
    make[1]: Entering directory `/usr/src/packages/SOURCES/keepassx-0.3.4/src’
    g++ -c -include ../build/keepassx -pipe -O2 -w -D_REENTRANT -DAUTOTYPE -DGLOBAL_AUTOTYPE -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I. -Ilib -Icrypto -Iplugins/interfaces -Iexport -Iimport -Idialogs -I../build/ui -I../build/moc -o ../build/AutoType_X11.o lib/AutoType_X11.cpp
    ../build/ui/ui_MainWindow.h: In member function ‘void Ui_MainWindow::setupUi(QMainWindow*)’:
    ../build/ui/ui_MainWindow.h:282: error: ‘class QTextBrowser’ has no member named ‘setOpenLinks’
    make[1]: *** [../build/AutoType_X11.o] Fehler 1
    make[1]: Leaving directory `/usr/src/packages/SOURCES/keepassx-0.3.4/src’
    make: *** [sub-src-make_default] Fehler 2

    Any suggestions?

  24. Joergk - 2009-01-09

    Problem solved: some deps have not been met, see http://www.debian.org and search for the keepassx package and you’ll see the deps

  25. Piedie - 2009-02-21

    Can not make it work. I would need more specific description. Starting up getting to now Linux and installing program. Any help?

  26. Beljoost - 2009-03-02

    # I had to do the following to install 0.3.4 on Ubuntu 7.10

    tar xzvf KeePassX-0.3.4.tar.gz
    cd keepassx-0.3.4

    sudo apt-get install qt4-dev-tools qt4-designer
    sudo apt-get install g++
    sudo apt-get install libxtst-dev

    qmake-qt4
    make

    sudo make install
    sudo chmod -R 777 /usr/share/keepassx

  27. deep.thought - 2009-07-04

    @Belijoost
    Thanks, that worked perfect. I guess we must remember to make certain dependencies are filled…

  28. eric - 2009-09-16

    Why does everyone hate CentOS?

    I cant seem to find any compatible software for it. I guess I will have to switch to ubuntu or red hat

  29. saivert - 2009-10-16

    Please provide build instructions for Mac OS X Snow Leopard.

    I get this when running qmake (downloaded latest Qt libs from Nokia):

    Project MESSAGE: See ‘INSTALL’ for configuration options.
    Project MESSAGE: Install Prefix: /usr
    Project MESSAGE: *** Makefile successfully generated.
    Project MESSAGE: *** Start make now.
    WARNING: Ignored (not found) ‘/private/var/root/code/keepassx-0.4.1/src/../bin/KeePassX.xcodeproj’

  30. Scott Bradley - 2009-10-30

    Just completed a KeePassX install on Ubuntu 9.10, Karmic Koala:

    http://www.codeslick.com/2009/10/keepass-on-karmic-koala.html.html

    sudo apt-get install build-essential
    sudo apt-get install libqt4-dev
    sudo apt-get install xorg-dev

    In downloaded/extracted KeePassX directory:
    qmake
    make
    sudo make install

  31. Ihmemies - 2009-11-25

    Anyone porting to the new Nokia N900 running Maemo? I would love to have this program in my pocket! :)

    Pretty please with cherry on top…

  32. Rickard - 2010-01-20

    http://exz.nu/keepass_20100120-1_i386.deb .. checkinstall debian/lenny package which i made. Enjoy

Leave a comment