Newbie Postgresql question

  • Hi All,

    I have a ubuntu 15.04 64 bit machine with qt 5.4.2 64 bit and PostgreSQL 9.4.4 64 bit.. I'm a qt newbie I'm trying to run the SQLbrowser example but my machine says driver is not loaded...

    How can I solve it..

  • Lifetime Qt Champion


    First thing to check, run ldd That will show if there's any library missing or not from the right version.

  • Hi,

    the LDD output is like this => (0x00007ffd63548000) => not found => /home/burak/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/ (0x00007f53f63a2000) => /home/burak/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/ (0x00007f53f5c63000) => /usr/lib/x86_64-linux-gnu/ (0x00007f53f5954000) => /lib/x86_64-linux-gnu/ (0x00007f53f558a000) => /lib/x86_64-linux-gnu/ (0x00007f53f536c000) => /home/burak/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/ (0x00007f53f4f20000) => /home/burak/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/ (0x00007f53f4b95000) => /lib/x86_64-linux-gnu/ (0x00007f53f4991000) => /usr/lib/x86_64-linux-gnu/ (0x00007f53f478f000) => /lib/x86_64-linux-gnu/ (0x00007f53f4587000) => /lib/x86_64-linux-gnu/ (0x00007f53f4278000) => /lib/x86_64-linux-gnu/ (0x00007f53f3f70000) => /lib/x86_64-linux-gnu/ (0x00007f53f3d5a000)
    /lib64/ (0x00007f53f67f6000) => /home/burak/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/ (0x00007f53f26d2000) => /lib/x86_64-linux-gnu/ (0x00007f53f2465000)

    but I don't understand this what would tell me .. Sorry..

  • Lifetime Qt Champion

    Look at the second line, it tells us that you don't have the PostgreSQL library installed. You need to run sudo apt-get install libpq5

  • Problem Solved thanks to SGaist thank you very much..


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.