KeePassX

Installation (source code tarball)

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

gzip -dc {Download-directory}/KeePassX-{Version}-.tar.gz | tar xf -

Change location into the created directory:

cd KeePassX-{Version}/

Then execute ‘qmake’ to create makefiles

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}

Note: under Mac OS X this parameter is not provided. Everthing is installed in ‘/Applications’

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 (21)

  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

Leave a comment