MySQL Forums
Forum List  »  Install & Repo

error while loading shared libraries:
Posted by: Yohann Dumais
Date: November 23, 2005 10:03AM


I am migrating our web site from a SCO to a Redhat server and I'm having trouble with the mysql server. After installin apache, I did the following to install mysql

groupadd mysql
useradd -g mysql mysql
(untared mysql-5.0.16.tar.gz in /tmp)
cd mysql-5.0.16
./configure -prefix=/usr/local/mysql -localstatedir=/usr/local/mysql/data -disable-maintainer-mode -with-mysqld-user=mysql -enable-large-files-without-debug
make install
cp support-files/my-medium.cnf /etc/my.cnf
cd /usr/local/mysql
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql data
chgrp -R mysql .
bin/mysqld_safe --user=mysql &

Now it is running:
ps -ef | grep mysql
root 19582 1 0 Nov22 ? 00:00:00 /bin/sh bin/mysqld_safe --user=mysql
mysql 19606 19582 0 Nov22 ? 00:00:28 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql --pid-file=/usr/local/mysql/data/ --skip-locking --port=3306 --socket=/tmp/mysql.sock
root 787 32608 0 11:00 pts/1 00:00:00 grep mysql

But if I do anything, for example
/usr/local/mysql# bin/mysqladmin -version
bin/mysqladmin: error while loading shared libraries: cannot open shared object file: No such file or directory

What bugs me, is that I do have this shared library :
locate libmysqlclient

I am thinking that something's wrong with my configure, I'm stomped.

Any help greatly appreciated.

Options: ReplyQuote

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.