Avatar of trazodone
trazodoneFlag for Thailand

asked on 

Zabbix installation mysql library not found.

Hello Experts,

I am installing zabbix web monitoring from source on Solaris 10 SPARC. I have a problem about :
./configure --enable-server --with-mysql=/opt/mysql/mysql/ --with-net-snmp --with-jabber --with-libcurl

The error is:
checking for macro __va_copy() in stdarg.h... yes
checking for macro __VA_ARGS__... yes
checking return type of signal handlers... void
checking for getloadavg... yes
checking for hstrerror... yes
checking for getenv... yes
checking for putenv... yes
checking for sigqueue... no
checking for /proc filesystem... yes
checking for file /proc/stat... no
checking for file /proc/cpuinfo... no
checking for file /proc/1/status... yes
checking for file /proc/0/psinfo... yes
checking for file /proc/loadavg... no
checking for file /proc/net/dev... no
checking for long long format... no
checking for -rdynamic linking option... no
checking for mysql_config... /opt/mysql/mysql/
configure: error: MySQL library not found

Then I use some command to see library path and link:
root@islapp01 # crle

Default configuration file (/var/ld/ld.config) not found
  Platform:     32-bit MSB SPARC
  Default Library Path (ELF):   /lib:/usr/lib  (system default)
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)

Mysql install in path /opt/mysql and library link is correct:
root@islapp01 # ls -l /usr/lib/libmys*
lrwxrwxrwx   1 root     root          37 May 23 10:36 /usr/lib/libmysqlclient.a -> /opt/mysql/mysql/lib/libmysqlclient.a
lrwxrwxrwx   1 root     root          45 May 23 10:36 /usr/lib/libmysqlclient.so -> /opt/mysql/mysql/lib/libmysqlclient.so.15.0.0
lrwxrwxrwx   1 root     root          45 May 23 10:36 /usr/lib/libmysqlclient.so.15 -> /opt/mysql/mysql/lib/libmysqlclient.so.15.0.0
lrwxrwxrwx   1 root     root          45 May 23 10:36 /usr/lib/libmysqlclient.so.15.0.0 -> /opt/mysql/mysql/lib/libmysqlclient.so.15.0.0
lrwxrwxrwx   1 root     root          39 May 23 10:36 /usr/lib/libmysqlclient_r.a -> /opt/mysql/mysql/lib/libmysqlclient_r.a
lrwxrwxrwx   1 root     root          47 May 23 10:36 /usr/lib/libmysqlclient_r.so -> /opt/mysql/mysql/lib/libmysqlclient_r.so.15.0.0
lrwxrwxrwx   1 root     root          47 May 23 10:36 /usr/lib/libmysqlclient_r.so.15 -> /opt/mysql/mysql/lib/libmysqlclient_r.so.15.0.0
lrwxrwxrwx   1 root     root          47 May 23 10:36 /usr/lib/libmysqlclient_r.so.15.0.0 -> /opt/mysql/mysql/lib/libmysqlclient_r.so.15.0.0

What should I do. Thank you.
MySQL ServerUnix OS

Avatar of undefined
Last Comment
trazodone
Avatar of gheist
gheist
Flag of Belgium image

You need to install mysql header files aka devel package aka build tree of MySQL you have on the system.
Avatar of trazodone
trazodone
Flag of Thailand image

ASKER

where can I get mysql header file?
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of trazodone
trazodone
Flag of Thailand image

ASKER

Thank you.
MySQL Server
MySQL Server

MySQL is an open source, relational database management system that runs as a server providing multi-user access to a number of databases. Acquired by Oracle in 2009, it is frequently used in combination with PHP installations, powering most of the WordPress installations.

49K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo