troubleshooting Question

Zabbix installation mysql library not found.

Avatar of trazodone
trazodoneFlag for Thailand asked on
Unix OSMySQL Server
4 Comments1 Solution5538 ViewsLast Modified:
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.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros