LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   zabbix error!! (https://www.linuxquestions.org/questions/linux-newbie-8/zabbix-error-721921/)

hasan_sust 04-27-2009 01:52 AM

zabbix error!!
 
Hello

I got the following messages when I want to give the following command to install zabbix on a RHEL5.

[root@localhost zabbix_server]# ./zabbix_server start
./zabbix_server: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory


Details


It may be mention that mysql, apache, php-5 all installed on /usr/local
using binary files.

@ Zabbix compilation I use the following lines

./configure --enable-server --with-mysql=/usr/local/mysql-5.1.30-linux-i686-glibc23/bin/mysql_config&&/usr/local/mysql-5.1.30-linux-i686-glibc23/lib/ --with-libcurl


then execute make
make install commands


Then i go to /usr/local/zabbix-1.6.4/src/zabbix_server and try to execute

./zabbix_server start Then following messages shows .



Please help me on this issue.

knudfl 04-28-2009 07:36 AM

Please try this :

ls -R /usr/local/lib/ | grep libmysqlclient

ls -R /usr/lib/ | grep libmysqlclient

ls -R /usr/local/mysql-5.1.30-linux-i686-glibc23/lib/ | grep libmysqlclient
.....

hasan_sust 04-29-2009 04:32 AM

Results are as follows:

[root@localhost lib]# ls -R /usr/local/lib/ | grep libmysqlclient
[root@localhost lib]#
[root@localhost lib]# ls -R /usr/lib/ | grep libmysqlclient
[root@localhost lib]#
[root@localhost lib]#
[root@localhost lib]# ls -R /usr/local/mysql-5.1.30-linux-i686-glibc23/lib/ | grep libmysqlclient
libmysqlclient.a
libmysqlclient.la
libmysqlclient_r.a
libmysqlclient_r.la
libmysqlclient_r.so
libmysqlclient_r.so.16
libmysqlclient_r.so.16.0.0
libmysqlclient.so
libmysqlclient.so.16
libmysqlclient.so.16.0.0

knudfl 04-30-2009 07:12 AM

Please add this line to /etc/ld.so.conf :

/usr/local/mysql-5.1.30-linux-i686-glibc23/lib/

and afterward run # /sbin/ldconfig


All times are GMT -5. The time now is 02:47 PM.