Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QMYSQL driver not loaded on Ubuntu
Forum Updated to NodeBB v4.3 + New Features

QMYSQL driver not loaded on Ubuntu

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
qt5errorqt creator
15 Posts 5 Posters 2.1k Views
  • 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.
  • A artem1997262
    1 Dec 2022, 13:37

    @JonB

    all file defines

    artem@user:/lib/x86_64-linux-gnu$ ldd libcrypto.so.10
    linux-gate.so.1 (0xf7f71000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7d39000)
    libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf7d1b000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7ae6000)
    /lib/ld-linux.so.2 (0xf7f73000)
    artem@user:/lib/x86_64-linux-gnu$ ldd libssl.so.10
    linux-gate.so.1 (0xf7ee1000)
    libcrypto.so.10 => /lib/x86_64-linux-gnu/libcrypto.so.10 (0xf7c3e000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7c39000)
    libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xf7c1b000)
    libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf79e6000)
    /lib/ld-linux.so.2 (0xf7ee3000)
    artem@user:/lib/x86_64-linux-gnu$

    C Offline
    C Offline
    Christian Ehrlicher
    Lifetime Qt Champion
    wrote on 1 Dec 2022, 13:45 last edited by
    #6

    @artem1997262 said in QMYSQL driver not loaded on Ubuntu:

    artem@user:/lib/x86_64-linux-gnu$ ldd libcrypto.so.10
    linux-gate.so.1 (0xf7f71000)
    libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7d39000)

    As you can see this links to 32bit libraries but

    root@user:/lib/x86_64-linux-gnu# ldd /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/libqsqlmysql.so

    This is a 64 bit library

    Install the libraries for your 64 bit architecture.

    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
    Visit the Qt Academy at https://academy.qt.io/catalog

    A 1 Reply Last reply 1 Dec 2022, 13:58
    2
    • C Christian Ehrlicher
      1 Dec 2022, 13:45

      @artem1997262 said in QMYSQL driver not loaded on Ubuntu:

      artem@user:/lib/x86_64-linux-gnu$ ldd libcrypto.so.10
      linux-gate.so.1 (0xf7f71000)
      libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7d39000)

      As you can see this links to 32bit libraries but

      root@user:/lib/x86_64-linux-gnu# ldd /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/libqsqlmysql.so

      This is a 64 bit library

      Install the libraries for your 64 bit architecture.

      A Offline
      A Offline
      artem1997262
      wrote on 1 Dec 2022, 13:58 last edited by
      #7

      @Christian-Ehrlicher
      package name was 64 bit...
      "libssl1.0.0_1.0.2n-1ubuntu5.10_amd64.deb"
      which version should i download?

      C 1 Reply Last reply 1 Dec 2022, 14:05
      0
      • A artem1997262
        1 Dec 2022, 13:58

        @Christian-Ehrlicher
        package name was 64 bit...
        "libssl1.0.0_1.0.2n-1ubuntu5.10_amd64.deb"
        which version should i download?

        C Offline
        C Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 1 Dec 2022, 14:05 last edited by
        #8

        @artem1997262 said in QMYSQL driver not loaded on Ubuntu:

        which version should i download?

        download? None - install via your normal package manager is the way to go.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        A 1 Reply Last reply 1 Dec 2022, 14:14
        0
        • C Christian Ehrlicher
          1 Dec 2022, 14:05

          @artem1997262 said in QMYSQL driver not loaded on Ubuntu:

          which version should i download?

          download? None - install via your normal package manager is the way to go.

          A Offline
          A Offline
          artem1997262
          wrote on 1 Dec 2022, 14:14 last edited by
          #9

          @Christian-Ehrlicher

          if I use this command, the terminal says that the latest version is installed. If I add something else in the name, the terminal says that the package was not found.

          sudo apt-get install libssl1.0.0

          C 1 Reply Last reply 1 Dec 2022, 14:18
          0
          • A artem1997262
            1 Dec 2022, 14:14

            @Christian-Ehrlicher

            if I use this command, the terminal says that the latest version is installed. If I add something else in the name, the terminal says that the package was not found.

            sudo apt-get install libssl1.0.0

            C Offline
            C Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on 1 Dec 2022, 14:18 last edited by
            #10

            @artem1997262 I don't know much about ubuntu but you must tell apt-get to install the 64 bit version. See e.g. here - looks like they had a similar problem.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            A 1 Reply Last reply 1 Dec 2022, 15:09
            0
            • C Christian Ehrlicher
              1 Dec 2022, 14:18

              @artem1997262 I don't know much about ubuntu but you must tell apt-get to install the 64 bit version. See e.g. here - looks like they had a similar problem.

              A Offline
              A Offline
              artem1997262
              wrote on 1 Dec 2022, 15:09 last edited by
              #11

              @Christian-Ehrlicher
              I have reinstalled the packages. *.so10 was determined, but the errors did not go away. How do you get rid of them anyway?

              root@user:/lib/x86_64-linux-gnu# ldd /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/libqsqlmysql.so
              /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/libqsqlmysql.so: /lib/x86_64-linux-gnu/libcrypto.so.10: version libcrypto.so.10' not found (required by /lib/x86_64-linux-gnu/libmysqlclient.so.18) /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/libqsqlmysql.so: /lib/x86_64-linux-gnu/libssl.so.10: version libssl.so.10' not found (required by /lib/x86_64-linux-gnu/libmysqlclient.so.18)
              linux-vdso.so.1 (0x00007ffe4fdbf000)
              libQt5Sql.so.5 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libQt5Sql.so.5 (0x00007ff22ee00000)
              libQt5Core.so.5 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libQt5Core.so.5 (0x00007ff22e600000)
              libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff22f5ab000)
              libmysqlclient.so.18 => /lib/x86_64-linux-gnu/libmysqlclient.so.18 (0x00007ff22e000000)
              libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff22ddd6000)
              libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff22f4c2000)
              libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff22f4a2000)
              libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff22dbae000)
              libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff22f486000)
              libicui18n.so.56 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libicui18n.so.56 (0x00007ff22d600000)
              libicuuc.so.56 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libicuuc.so.56 (0x00007ff22d200000)
              libicudata.so.56 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libicudata.so.56 (0x00007ff22b800000)
              libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff22f47f000)
              libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007ff22f47a000)
              libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007ff22f0c6000)
              /lib64/ld-linux-x86-64.so.2 (0x00007ff22f5c9000)
              libssl.so.10 => /lib/x86_64-linux-gnu/libssl.so.10 (0x00007ff22b400000)
              libcrypto.so.10 => /lib/x86_64-linux-gnu/libcrypto.so.10 (0x00007ff22ae00000)
              libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007ff22f050000)

              C A 2 Replies Last reply 1 Dec 2022, 15:11
              0
              • A artem1997262
                1 Dec 2022, 15:09

                @Christian-Ehrlicher
                I have reinstalled the packages. *.so10 was determined, but the errors did not go away. How do you get rid of them anyway?

                root@user:/lib/x86_64-linux-gnu# ldd /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/libqsqlmysql.so
                /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/libqsqlmysql.so: /lib/x86_64-linux-gnu/libcrypto.so.10: version libcrypto.so.10' not found (required by /lib/x86_64-linux-gnu/libmysqlclient.so.18) /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/libqsqlmysql.so: /lib/x86_64-linux-gnu/libssl.so.10: version libssl.so.10' not found (required by /lib/x86_64-linux-gnu/libmysqlclient.so.18)
                linux-vdso.so.1 (0x00007ffe4fdbf000)
                libQt5Sql.so.5 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libQt5Sql.so.5 (0x00007ff22ee00000)
                libQt5Core.so.5 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libQt5Core.so.5 (0x00007ff22e600000)
                libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff22f5ab000)
                libmysqlclient.so.18 => /lib/x86_64-linux-gnu/libmysqlclient.so.18 (0x00007ff22e000000)
                libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff22ddd6000)
                libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff22f4c2000)
                libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff22f4a2000)
                libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff22dbae000)
                libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff22f486000)
                libicui18n.so.56 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libicui18n.so.56 (0x00007ff22d600000)
                libicuuc.so.56 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libicuuc.so.56 (0x00007ff22d200000)
                libicudata.so.56 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libicudata.so.56 (0x00007ff22b800000)
                libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff22f47f000)
                libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007ff22f47a000)
                libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007ff22f0c6000)
                /lib64/ld-linux-x86-64.so.2 (0x00007ff22f5c9000)
                libssl.so.10 => /lib/x86_64-linux-gnu/libssl.so.10 (0x00007ff22b400000)
                libcrypto.so.10 => /lib/x86_64-linux-gnu/libcrypto.so.10 (0x00007ff22ae00000)
                libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007ff22f050000)

                C Offline
                C Offline
                Christian Ehrlicher
                Lifetime Qt Champion
                wrote on 1 Dec 2022, 15:11 last edited by
                #12

                @artem1997262 said in QMYSQL driver not loaded on Ubuntu:

                How do you get rid of them anyway?

                Did you read the link I gave you? They had the same problem and a solution afaics.

                Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                Visit the Qt Academy at https://academy.qt.io/catalog

                A 1 Reply Last reply 1 Dec 2022, 15:22
                0
                • C Christian Ehrlicher
                  1 Dec 2022, 15:11

                  @artem1997262 said in QMYSQL driver not loaded on Ubuntu:

                  How do you get rid of them anyway?

                  Did you read the link I gave you? They had the same problem and a solution afaics.

                  A Offline
                  A Offline
                  artem1997262
                  wrote on 1 Dec 2022, 15:22 last edited by artem1997262 12 Jan 2022, 15:42
                  #13

                  @Christian-Ehrlicher said in QMYSQL driver not loaded on Ubuntu:

                  Did you read the link I gave you? They had the same problem and a solution afaics.

                  I fixed the error that you linked. *.so10 files are read, it can be seen in the log. Now another error has arisen, adjacent.
                  Last time he said:
                  libssl.so.10 => not found
                  libcrypto.so.10 => not found
                  I fixed it.
                  I installed the latest version of the 64-bit packages that were in your link.
                  He's writing: "version libcrypto.so.10' not found" Although below shows found that file. I don't understand what he wants.

                  J 1 Reply Last reply 2 Dec 2022, 06:57
                  0
                  • A artem1997262
                    1 Dec 2022, 15:09

                    @Christian-Ehrlicher
                    I have reinstalled the packages. *.so10 was determined, but the errors did not go away. How do you get rid of them anyway?

                    root@user:/lib/x86_64-linux-gnu# ldd /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/libqsqlmysql.so
                    /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/libqsqlmysql.so: /lib/x86_64-linux-gnu/libcrypto.so.10: version libcrypto.so.10' not found (required by /lib/x86_64-linux-gnu/libmysqlclient.so.18) /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/libqsqlmysql.so: /lib/x86_64-linux-gnu/libssl.so.10: version libssl.so.10' not found (required by /lib/x86_64-linux-gnu/libmysqlclient.so.18)
                    linux-vdso.so.1 (0x00007ffe4fdbf000)
                    libQt5Sql.so.5 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libQt5Sql.so.5 (0x00007ff22ee00000)
                    libQt5Core.so.5 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libQt5Core.so.5 (0x00007ff22e600000)
                    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff22f5ab000)
                    libmysqlclient.so.18 => /lib/x86_64-linux-gnu/libmysqlclient.so.18 (0x00007ff22e000000)
                    libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff22ddd6000)
                    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff22f4c2000)
                    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff22f4a2000)
                    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff22dbae000)
                    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007ff22f486000)
                    libicui18n.so.56 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libicui18n.so.56 (0x00007ff22d600000)
                    libicuuc.so.56 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libicuuc.so.56 (0x00007ff22d200000)
                    libicudata.so.56 => /home/artem/Qt5.9.2/5.9.2/gcc_64/plugins/sqldrivers/../../lib/libicudata.so.56 (0x00007ff22b800000)
                    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007ff22f47f000)
                    libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007ff22f47a000)
                    libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007ff22f0c6000)
                    /lib64/ld-linux-x86-64.so.2 (0x00007ff22f5c9000)
                    libssl.so.10 => /lib/x86_64-linux-gnu/libssl.so.10 (0x00007ff22b400000)
                    libcrypto.so.10 => /lib/x86_64-linux-gnu/libcrypto.so.10 (0x00007ff22ae00000)
                    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007ff22f050000)

                    A Offline
                    A Offline
                    artem1997262
                    wrote on 1 Dec 2022, 15:33 last edited by artem1997262 12 Jan 2022, 15:41
                    #14
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • A artem1997262
                      1 Dec 2022, 15:22

                      @Christian-Ehrlicher said in QMYSQL driver not loaded on Ubuntu:

                      Did you read the link I gave you? They had the same problem and a solution afaics.

                      I fixed the error that you linked. *.so10 files are read, it can be seen in the log. Now another error has arisen, adjacent.
                      Last time he said:
                      libssl.so.10 => not found
                      libcrypto.so.10 => not found
                      I fixed it.
                      I installed the latest version of the 64-bit packages that were in your link.
                      He's writing: "version libcrypto.so.10' not found" Although below shows found that file. I don't understand what he wants.

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 2 Dec 2022, 06:57 last edited by
                      #15

                      @artem1997262 said in QMYSQL driver not loaded on Ubuntu:

                      Although below shows found that file

                      Where is it located?
                      And did you check whether it is 64bit this time?

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      15/15

                      2 Dec 2022, 06:57

                      • Login

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