netxms-3.0.2292 configure error cannot find mysql.h on centos7
-
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 installationfind / -type f -name mysql.h
/usr/include/mysql/server/mysql.h
/usr/include/mysql/mysql.hrpm -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 -
Hi,
try to use --with-mysql instead.
Best regards,
Victor -
-
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_64How did you install MariaDB client?
Best regards,
Victor -
@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=1yum install MariaDB-server MariaDB-devel
-
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 -
@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,
VictorHi, Victor
Thanks for your support, it helped me, after installing mariadb-shared, ./configure ended without errors
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