Zabbix installation mysql library not found.

trazodone
trazodone used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2015

Commented:
You need to install mysql header files aka devel package aka build tree of MySQL you have on the system.

Author

Commented:
where can I get mysql header file?
Top Expert 2015
Commented:
the package would be named mysql-devel-5.5.x. (just likeinstalled mysql)

alternatively you can extract source of exact version of mysql and use headers in include directory

Author

Commented:
Thank you.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial