Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. netxms-3.0.2292 configure error cannot find mysql.h on centos7

netxms-3.0.2292 configure error cannot find mysql.h on centos7

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 43.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.
  • G
    G
    grif
    wrote on last edited by
    #1

    Linux 3.10.0-1062.el7.x86_64
    ./configure --with-server --with-mariadb --prefix=/usr
    checking for mysql.h... no
    configure: error: Cannot find mysql.h - check your MariaDB client installation

     find / -type f -name mysql.h
    /usr/include/mysql/server/mysql.h
    /usr/include/mysql/mysql.h

    rpm -qa *aria*
    MariaDB-server-10.4.8-1.el7.centos.x86_64
    MariaDB-client-10.4.8-1.el7.centos.x86_64
    MariaDB-devel-10.4.8-1.el7.centos.x86_64
    MariaDB-compat-10.4.8-1.el7.centos.x86_64
    MariaDB-common-10.4.8-1.el7.centos.x86_64

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi,

      try to use --with-mysql instead.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • G
        G
        grif
        wrote on last edited by
        #3

        @victor said in netxms-3.0.2292 configure error cannot find mysql.h on centos7:

        Hi,

        try to use --with-mysql instead.

        Best regards,
        Victor

        Thank you it helped, but I have an error in the next step

        checking for mysql_init in -lmysqlclient... no

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          Please share your config.log. I've installed clean CentOS 7 and mariadb-devel package and build went without errors using --with-mysql. However versions are different:

          rpm -qa *aria*
          mariadb-devel-5.5.64-1.el7.x86_64
          mariadb-libs-5.5.64-1.el7.x86_64

          How did you install MariaDB client?

          Best regards,
          Victor

          1 Reply Last reply
          0
          • G
            G
            grif
            wrote on last edited by
            #5

            @victor said in netxms-3.0.2292 configure error cannot find mysql.h on centos7:

            ....
            How did you install MariaDB client?
            ...

            /etc/yum.repos.d/MariaDB.repo
            # MariaDB 10.4 CentOS repository list
            # http://downloads.mariadb.org/mariadb/repositories/
            [mariadb]
            name = MariaDB
            baseurl = http://yum.mariadb.org/10.4/centos7-amd64
            gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
            gpgcheck=1

            yum install MariaDB-server MariaDB-devel

            1 Reply Last reply
            0
            • V
              V
              Victor Kirhenshtein
              wrote on last edited by
              #6

              Hi,

              looks like you have to install MariaDB-shared as well. Then --with-mysql should work. I also changed configure to provide option for setup like this when MariaDB library tries to mimic MySQL client library and installs headers into /usr/include/mysql: --with-mariadb-compat-headers. You can try this source package: https://netxms.org/download/releases/3.0/netxms-3.0.2307.tar.gz and use configure options --with-mariadb --with-mariadb-compat-headers.

              Best regards,
              Victor

              1 Reply Last reply
              0
              • G
                G
                grif
                wrote on last edited by
                #7

                @victor said in netxms-3.0.2292 configure error cannot find mysql.h on centos7:

                Hi,

                looks like you have to install MariaDB-shared as well. Then --with-mysql should work. I also changed configure to provide option for setup like this when MariaDB library tries to mimic MySQL client library and installs headers into /usr/include/mysql: --with-mariadb-compat-headers. You can try this source package: https://netxms.org/download/releases/3.0/netxms-3.0.2307.tar.gz and use configure options --with-mariadb --with-mariadb-compat-headers.

                Best regards,
                Victor

                Hi, Victor

                Thanks for your support, it helped me, after installing mariadb-shared, ./configure ended  without errors

                1 Reply Last reply
                0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                Powered by NodeBB Contributors
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups