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.