Can ' t open lib '/usr/lib64/libmyodbc5.so ': File not Found

Source: Internet
Author: User


Can ' t open lib '/usr/lib64/libmyodbc5.so ': File not Found


This error occurs because the system does not have MYSQL-CONNECTOR-ODBC installed


If Mysql-connector-odbc and UNIXODBC are installed and Unixodbc-devel

And look at the/usr/lib64/directory, there is indeed libmyodbc5.so

Installation reason 2 troubleshooting

Reason 2:

The figure clearly shows that the MySQL library on which Libmyodbc5.so relies is not found

MySQL library should be in the/usr/lib64/mysql directory

View MySQL dynamic library directory, MySQL dynamic library does exist.

Then we should consider what the problem is ...

Yes, no directories loaded with MySQL dynamic libraries

Take a look at:

Command: cat/etc/ld.so.conf

[Root@callcenter lib64]# 
[root@callcenter lib64]# cat/etc/ld.so.conf
include ld.so.conf.d/*.conf
[ Root@callcenter lib64]# 
[Root@callcenter lib64]# [Root@callcenter-lib64]# ll/etc/ld.so.conf.d total
28
-rw-r--r--. 1 root  atlas-x86_64.conf
-r--r--r--. 1 root 324 Oct  2014 ker nel-2.6.32-504.el6.x86_64.conf
-rw-r--r--. 1 root  Aug  2 18:08 local.conf
-rw-r--r--. 1 Root root  Aug  2 18:18 mysql.conf
-rw-r--r--. 1 root  Aug 2 18:10  openssl.conf
- Rw-r--r--. 1 root  Sep  qt-x86_64.conf
-rw-r--r--. 1 root  2013 xulrunner-64.co NF
[Root@callcenter lib64]# 
[root@callcenter lib64]# cat/etc/ld.so.conf.d/mysql.conf
/usr/local/ Mysql/lib
[Root@callcenter lib64]# 

Well, the problem is out, the path to the 64-bit library is not configured in mysql.conf, only 32-bit paths are configured


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.