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.
trazodoneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

gheistCommented:
You need to install mysql header files aka devel package aka build tree of MySQL you have on the system.
trazodoneAuthor Commented:
where can I get mysql header file?
gheistCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
trazodoneAuthor Commented:
Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.