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. Build mysql drivers under AlmaLinux 9
Forum Update on Tuesday, May 27th 2025

Build mysql drivers under AlmaLinux 9

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 987 Views 2 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.
  • ocgltdO Offline
    ocgltdO Offline
    ocgltd
    wrote on last edited by ocgltd
    #1

    I have Qt Creator installed on Alma Linux 9 and need to build the MySQL driver for Qt 5.15.2. Its very hard to find (the right) instructions online...and even harder to find something specific to the Red Hat family (CentOS/RH/AlmaLinux/Rocky/Fedora).

    Whenever I run configure --sql-mysql I get the warning that prerequisites are not met for libs.mysql

    But what prerequisite? Can anyone on the RH family help with some specific instructions on packages to install?

    SGaistS 1 Reply Last reply
    0
    • ocgltdO ocgltd

      I have Qt Creator installed on Alma Linux 9 and need to build the MySQL driver for Qt 5.15.2. Its very hard to find (the right) instructions online...and even harder to find something specific to the Red Hat family (CentOS/RH/AlmaLinux/Rocky/Fedora).

      Whenever I run configure --sql-mysql I get the warning that prerequisites are not met for libs.mysql

      But what prerequisite? Can anyone on the RH family help with some specific instructions on packages to install?

      SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      As silly as it may sound but did you install the MySQL or MariaDB development packages ?

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

      ocgltdO 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        As silly as it may sound but did you install the MySQL or MariaDB development packages ?

        ocgltdO Offline
        ocgltdO Offline
        ocgltd
        wrote on last edited by ocgltd
        #3

        @SGaist Yes - the only mysql/mariadb package available with dev in the name is mariadb-connector-c-devel and that's installed. I discovered that mariadb-devel is NOT available on EPEL or base repo's for AlmaLinux 9, so I installed it from a CentOS 9 repo. But still same problem.

        I feel like something is missing but just can't figure out what package. The libqsqlmysql.so files shows all dependencies found:

        ldd /usr/lib64/qt5/plugins/sqldrivers/libqsqlmysql.so
                linux-vdso.so.1 (0x00007ffeb6ab1000)
                libQt5Sql.so.5 => /lib64/libQt5Sql.so.5 (0x00007feda4702000)
                libQt5Core.so.5 => /lib64/libQt5Core.so.5 (0x00007feda4000000)
                libmariadb.so.3 => /lib64/libmariadb.so.3 (0x00007feda46ac000)
                libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007feda3c00000)
                libc.so.6 => /lib64/libc.so.6 (0x00007feda3800000)
                libsystemd.so.0 => /lib64/libsystemd.so.0 (0x00007feda45cf000)
                libz.so.1 => /lib64/libz.so.1 (0x00007feda45b3000)
                libicui18n.so.67 => /lib64/libicui18n.so.67 (0x00007feda3400000)
                libicuuc.so.67 => /lib64/libicuuc.so.67 (0x00007feda3a15000)
                libpcre2-16.so.0 => /lib64/libpcre2-16.so.0 (0x00007feda3f71000)
                libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007feda3e37000)
                libm.so.6 => /lib64/libm.so.6 (0x00007feda3725000)
                libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007feda4596000)
                /lib64/ld-linux-x86-64.so.2 (0x00007feda4772000)
                libssl.so.3 => /lib64/libssl.so.3 (0x00007feda335a000)
                libcrypto.so.3 => /lib64/libcrypto.so.3 (0x00007feda2e00000)
                libcap.so.2 => /lib64/libcap.so.2 (0x00007feda458c000)
                libgcrypt.so.20 => /lib64/libgcrypt.so.20 (0x00007feda2cc7000)
                liblzma.so.5 => /lib64/liblzma.so.5 (0x00007feda332e000)
                libzstd.so.1 => /lib64/libzstd.so.1 (0x00007feda3257000)
                liblz4.so.1 => /lib64/liblz4.so.1 (0x00007feda3233000)
                libicudata.so.67 => /lib64/libicudata.so.67 (0x00007feda1000000)
                libpcre.so.1 => /lib64/libpcre.so.1 (0x00007feda2c4f000)
                libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007feda2c29000)
        
        SGaistS ocgltdO 2 Replies Last reply
        0
        • ocgltdO ocgltd

          @SGaist Yes - the only mysql/mariadb package available with dev in the name is mariadb-connector-c-devel and that's installed. I discovered that mariadb-devel is NOT available on EPEL or base repo's for AlmaLinux 9, so I installed it from a CentOS 9 repo. But still same problem.

          I feel like something is missing but just can't figure out what package. The libqsqlmysql.so files shows all dependencies found:

          ldd /usr/lib64/qt5/plugins/sqldrivers/libqsqlmysql.so
                  linux-vdso.so.1 (0x00007ffeb6ab1000)
                  libQt5Sql.so.5 => /lib64/libQt5Sql.so.5 (0x00007feda4702000)
                  libQt5Core.so.5 => /lib64/libQt5Core.so.5 (0x00007feda4000000)
                  libmariadb.so.3 => /lib64/libmariadb.so.3 (0x00007feda46ac000)
                  libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007feda3c00000)
                  libc.so.6 => /lib64/libc.so.6 (0x00007feda3800000)
                  libsystemd.so.0 => /lib64/libsystemd.so.0 (0x00007feda45cf000)
                  libz.so.1 => /lib64/libz.so.1 (0x00007feda45b3000)
                  libicui18n.so.67 => /lib64/libicui18n.so.67 (0x00007feda3400000)
                  libicuuc.so.67 => /lib64/libicuuc.so.67 (0x00007feda3a15000)
                  libpcre2-16.so.0 => /lib64/libpcre2-16.so.0 (0x00007feda3f71000)
                  libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007feda3e37000)
                  libm.so.6 => /lib64/libm.so.6 (0x00007feda3725000)
                  libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007feda4596000)
                  /lib64/ld-linux-x86-64.so.2 (0x00007feda4772000)
                  libssl.so.3 => /lib64/libssl.so.3 (0x00007feda335a000)
                  libcrypto.so.3 => /lib64/libcrypto.so.3 (0x00007feda2e00000)
                  libcap.so.2 => /lib64/libcap.so.2 (0x00007feda458c000)
                  libgcrypt.so.20 => /lib64/libgcrypt.so.20 (0x00007feda2cc7000)
                  liblzma.so.5 => /lib64/liblzma.so.5 (0x00007feda332e000)
                  libzstd.so.1 => /lib64/libzstd.so.1 (0x00007feda3257000)
                  liblz4.so.1 => /lib64/liblz4.so.1 (0x00007feda3233000)
                  libicudata.so.67 => /lib64/libicudata.so.67 (0x00007feda1000000)
                  libpcre.so.1 => /lib64/libpcre.so.1 (0x00007feda2c4f000)
                  libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007feda2c29000)
          
          SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you look at the output of the tests to see exactly what made the check fail ?

          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
          • ocgltdO ocgltd

            @SGaist Yes - the only mysql/mariadb package available with dev in the name is mariadb-connector-c-devel and that's installed. I discovered that mariadb-devel is NOT available on EPEL or base repo's for AlmaLinux 9, so I installed it from a CentOS 9 repo. But still same problem.

            I feel like something is missing but just can't figure out what package. The libqsqlmysql.so files shows all dependencies found:

            ldd /usr/lib64/qt5/plugins/sqldrivers/libqsqlmysql.so
                    linux-vdso.so.1 (0x00007ffeb6ab1000)
                    libQt5Sql.so.5 => /lib64/libQt5Sql.so.5 (0x00007feda4702000)
                    libQt5Core.so.5 => /lib64/libQt5Core.so.5 (0x00007feda4000000)
                    libmariadb.so.3 => /lib64/libmariadb.so.3 (0x00007feda46ac000)
                    libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007feda3c00000)
                    libc.so.6 => /lib64/libc.so.6 (0x00007feda3800000)
                    libsystemd.so.0 => /lib64/libsystemd.so.0 (0x00007feda45cf000)
                    libz.so.1 => /lib64/libz.so.1 (0x00007feda45b3000)
                    libicui18n.so.67 => /lib64/libicui18n.so.67 (0x00007feda3400000)
                    libicuuc.so.67 => /lib64/libicuuc.so.67 (0x00007feda3a15000)
                    libpcre2-16.so.0 => /lib64/libpcre2-16.so.0 (0x00007feda3f71000)
                    libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007feda3e37000)
                    libm.so.6 => /lib64/libm.so.6 (0x00007feda3725000)
                    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007feda4596000)
                    /lib64/ld-linux-x86-64.so.2 (0x00007feda4772000)
                    libssl.so.3 => /lib64/libssl.so.3 (0x00007feda335a000)
                    libcrypto.so.3 => /lib64/libcrypto.so.3 (0x00007feda2e00000)
                    libcap.so.2 => /lib64/libcap.so.2 (0x00007feda458c000)
                    libgcrypt.so.20 => /lib64/libgcrypt.so.20 (0x00007feda2cc7000)
                    liblzma.so.5 => /lib64/liblzma.so.5 (0x00007feda332e000)
                    libzstd.so.1 => /lib64/libzstd.so.1 (0x00007feda3257000)
                    liblz4.so.1 => /lib64/liblz4.so.1 (0x00007feda3233000)
                    libicudata.so.67 => /lib64/libicudata.so.67 (0x00007feda1000000)
                    libpcre.so.1 => /lib64/libpcre.so.1 (0x00007feda2c4f000)
                    libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007feda2c29000)
            
            ocgltdO Offline
            ocgltdO Offline
            ocgltd
            wrote on last edited by ocgltd
            #5

            I got a little further! I deleted config.cache and ran configure again and this time I thought it worked. Make and make install also seemed to work.

            I'll report back on if this now works! But for other almalinux users, the keys were:

            1. Download mariadb-devel from the CentOS repos - it's not available for AlmaLinux 9 yet
            2. Delete the config.cache and run configure again.

            How can I check individual test outputs? (To see exactly what is missing)

            SGaistS 1 Reply Last reply
            1
            • ocgltdO ocgltd has marked this topic as solved on
            • ocgltdO ocgltd

              I got a little further! I deleted config.cache and ran configure again and this time I thought it worked. Make and make install also seemed to work.

              I'll report back on if this now works! But for other almalinux users, the keys were:

              1. Download mariadb-devel from the CentOS repos - it's not available for AlmaLinux 9 yet
              2. Delete the config.cache and run configure again.

              How can I check individual test outputs? (To see exactly what is missing)

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              There's usually either a log, or an output folder in the build folder.

              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

              • Login

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