Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Newbie Postgresql question

Newbie Postgresql question

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 1.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zeroptr
    wrote on last edited by
    #1

    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..

    Linux Mint 20.04 64 Bit QT6.0.1

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Z Offline
        Z Offline
        zeroptr
        wrote on last edited by
        #3

        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..

        Linux Mint 20.04 64 Bit QT6.0.1

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • Z Offline
            Z Offline
            zeroptr
            wrote on last edited by
            #5

            Problem Solved thanks to SGaist thank you very much..

            Regards..

            Linux Mint 20.04 64 Bit QT6.0.1

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved