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

    Hi,

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



  • Hi,

    the LDD output is like this

    linux-vdso.so.1 => (0x00007ffd63548000)
    libpq.so.5 => not found
    libQt5Sql.so.5 => /home/burak/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/libQt5Sql.so.5 (0x00007f53f63a2000)
    libQt5Core.so.5 => /home/burak/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/libQt5Core.so.5 (0x00007f53f5c63000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f53f5954000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f53f558a000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f53f536c000)
    libicui18n.so.53 => /home/burak/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/libicui18n.so.53 (0x00007f53f4f20000)
    libicuuc.so.53 => /home/burak/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/libicuuc.so.53 (0x00007f53f4b95000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f53f4991000)
    libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f53f478f000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f53f4587000)
    libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f53f4278000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f53f3f70000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f53f3d5a000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f53f67f6000)
    libicudata.so.53 => /home/burak/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/libicudata.so.53 (0x00007f53f26d2000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (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..

    Regards..


Log in to reply
 

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