When installing mysql-connector-odbc in Linux AS5.0, the following message is displayed:
# Rpm-ivh mysql-connector-odbc-3.51.12-2.2.i386.rpm
Warning: mysql-connector-odbc-3.51.12-2.2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Error: Failed dependencies:
Libltdl. so.3 is needed by mysql-connector-odbc-3.51.12-2.2.i386
Libodbcinst. so.1 is needed by mysql-connector-odbc-3.51.12-2.2.i386
UnixODBC is needed by mysql-connector-odbc-3.51.12-2.2.i386
This indicates that some dependent libraries are required for installing mysql-connector-odbc. Therefore, we need to install these libraries by installing the rpm file.
How do I know the rpm files of these dependent libraries?
Search related rpm files
You can also run commands on other Linux versions.
# Locate libltdl. so.3
/Usr/lib/libltdl. so.3
/Usr/lib/libltdl. so.3.1.0
[Root @ localhost ~] # Rpm-qf/usr/lib/libltdl. so.3
Libtool-libs-1.5.6-4.EL4.1
Ldd can be used to view the library on which the command depends
For example, the library to which the ls command depends
Ldd/bin/ls.