Centos Error While Loading Shared Libraries Libmysqlclient.so.15
a DA server, recently updated mysql to version 5.1, you'll still need your old libmysqlclient.so files from mysql 5.0. This would be the error you're seeing:[root@server directadmin]# service directadmin restart Stopping DirectAdmin: [FAILED] Starting DirectAdmin: /usr/local/directadmin/directadmin: error while loading shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory [FAILED]To resolve the issue, simply grab the old libmysqlclient.so.15 file from our server. Example, for CentOS 5 - 64-bit, run:wget -O /usr/lib64/libmysqlclient.so.15 http://files.directadmin.com/services/es_5.0_64/libmysqlclient.so.15 chmod 755 /usr/lib64/libmysqlclient.so.15 ldconfig On non-64-bit systems, the file would go into /usr/lib/libmysqlclient.so.15 Similar reported issue on Debian 5 64-bit, type:wget -O /usr/local/mysql/lib/libmysqlclient.so.16 http://files.directadmin.com/services/debian_5.0_64/libmysqlclient.so.16 chmod 755 /usr/local/mysql/lib/libmysqlclient.so.16 ldconfig Debian 6, if you update to 5.5.11 from 5.5.9, they've changed the libmysqlclient.so.16 to libmysqlclient.so.18, so it just needs a relink. If you run thiscd /usr/local/directadmin ./directadmin oand get this error./directadmin: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directorythen run this:cd /usr/local/mysql/lib ln -s libmysqlclient.so.18 libmysqlclient.so.16 ldconfigSome reported cases of the link to 18 not working, so the 16 version has been made available. Type:cd /usr/local/mysql/lib rm -f libmysqlclient.so.16 #in case you've already tried the above linking method wget http://files.directadmin.com/services/debian_6.0/libmysqlclient.so.16 chmod 755 libmysqlclient.so.16 ldconfig Related Helpfiles ./install.sh: line 225: ./directadmin: cannot execute binary file Which OS am I using?
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it https://help.directadmin.com/item.php?id=236 only takes a minute: Sign up libmysqlclient.so.15: cannot open shared object file: No such file or directory up vote 0 down vote favorite All Rails applications are working just fine until today. I am not sure, if someone changes the settings on this machine. However does anyone knows what could be the quick fix for this? Thank you, Details: Centos http://stackoverflow.com/questions/10529401/libmysqlclient-so-15-cannot-open-shared-object-file-no-such-file-or-directory 5.5 Apache Passenger Rails 3.0.x MySql 5.0.77 Error details: http://cl.ly/3w1l0Q2l002e1t1B2L3x ruby-on-rails linux apache centos passenger share|improve this question edited May 10 '12 at 8:13 asked May 10 '12 at 7:36 Lee 500621 Ubuntu: stackoverflow.com/questions/8456300/… –kenorb Mar 7 '14 at 18:04 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote accepted Okay this saves the day. wget -O /usr/lib64/libmysqlclient.so.15 http://files.directadmin.com/services/es_5.0_64/libmysqlclient.so.15 chmod 755 /usr/lib64/libmysqlclient.so.15 ldconfig share|improve this answer edited Dec 4 '14 at 9:10 Cyril N. 14.8k1772136 answered May 11 '12 at 12:03 Lee 500621 add a comment| up vote 0 down vote You can try to find the right package by the following command: $ sudo yum whatprovides libmysqlclient.so.15 libmysqlclient15-5.0.95-5.w5.i386 libmysqlclient15-devel-5.0.95-5.w5.i386 cpanel-mysql-libs-5.0.96-1.cp1136.i386 : The shared libraries required for MySQL clients then: $ sudo yum reinstall WHATEVER_THE_PACKAGE_NAME_IS You may double check the package name by doing yum search package_name. If not found, you may try to fix your yum repositories e.g. by configuring Webtatic Yum Repository. To set up the repository, install the webtatic-release RPM: Webtatic EL6 for CentOS/RHEL 6: rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm We
Community Podcasts MySQL.com Downloads Documentation Section Menu: MySQL Forums :: Install & Repo :: error while loading shared libraries: http://forums.mysql.com/read.php?11,56170 libmysqlclient.so New Topic Advanced Search error while loading shared libraries: libmysqlclient.so Posted by: Yohann Dumais () Date: November 23, 2005 10:03AM Hi, I am migrating our http://www.cnblogs.com/emanlee/p/3509080.html 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 centos error 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 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 centos error while 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/BLRMTL01.pid --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: libmysqlclient.so.15: cannot open shared object file: No such file or directory What bugs me, is that I do have this shared library : locate libmysqlclient /usr/local/mysql/lib/mysql/libmysqlclient.so.15.0.0 /usr/local/mysql/lib/mysql/libmysqlclient.so.15 /usr/local/mysql/lib/mysql/libmysqlclient.so /usr/local/mysql/lib/mysql/libmysqlclient.la /usr/local/mysql/lib/mysql/libmysqlclient.a I am thinking that something's wrong with my configure, I'm stomped. Any help greatly appreciated. Navigate:Previous Message•Next Message Options:Reply•Quote Subject Written By Posted error while loading shared libraries: libmysqlclient.so Yohann Dumais 11/23/2005 10:03AM Re: error while loading shared libraries: libmysqlclient.so Yohann Dumais 11/23/2005 12:37PM Re: error while loading shared libraries: libmysqlclient.so Faisal M 09/14/2007 11:23PM Re: error while loading shared libraries: libmysqlclient.so ryan bui 12/08/2007 06:49PM Re: error while loading shared libraries: libmysqlclient.
shared libraries: libmysqlclient.so.15: cannot open shared object file: No such file or directory 解决方法:1.下载 libmysqlclient.so.15 或是拷贝 libmysqlclient.so.15 到 /usr/lib (32位) 、/usr/lib64 (64位) 以64位centos为例: 下载地址 http://files.directadmin.com/services/es_5.0_64/libmysqlclient.so.15 #cd /usr/lib64#wget http://files.directadmin.com/services/es_5.0_64/libmysqlclient.so.15 2.给libmysqlclient.so.15加x权限#chmod 755 /usr/lib64/libmysqlclient.so.15 3.重新载入ldconfig#ldconfig posted @ 2014-01-07 16:10 emanlee 阅读(...) 评论(...) 编辑 收藏 刷新评论刷新页面返回顶部 Copyright ©2016 emanlee