Home  >  Article  >  Operation and Maintenance  >  Share an example explanation of error reporting in Yum

Share an example explanation of error reporting in Yum

零下一度
零下一度Original
2017-06-17 11:31:401631browse

This article mainly introduces to you the relevant information for troubleshooting the error reported in Yum: "pycurl.so: undefined symbol: CRYPTO_num_locks". The article introduces it in detail through pictures and texts. Friends who need it can refer to it below. Let’s take a look together.

I recently discovered a problem at work. yum cannot be used. The error is as follows:


/usr/lib64/python2.7/site-packages/pycurl.so: undefined symbol: CRYPTO_num_locks


##ldd /usr/lib64/python2.7/site-packages/pycurl.so Check the dynamic library connection

Note:The location of libcurl


Check if libcurl has any abnormal configuration

ldconfig -v | grep libcurl Found two libcurl


Check the configuration of ld.so.conf


Compare with the normal test machine


According to the previous ldd, try removing the local lib

vi /etc/ld.so.conf

Execute

ldconfig , regenerate cache, no return, test yum still does not work

ldconfig -p|grep curl Check the loading


Continue to search for


##Delete the

corresponding directory, and then refresh the cache (here It is obviously the libcurl address set by MySQL. After verification, it was found that there was a problem with MySQLinstallation and has been deleted)

##yum can now used.

Knowledge expansion:

ldconfig is a dynamic link library management command. In order to make the dynamic link library shared by the system, you need to run the dynamic link library The management command of the link library--ldconfig.

The purpose of the ldconfig command is mainly to search in the default search directories (/lib and /usr/lib) and the directories listed in the dynamic library

Configuration file

/etc/ld.so.conf Next,

Search for a shareable dynamic link library (the format is as described above, lib*.so*), and then create the connection and cache files required by the dynamic loader (ld.so). Cache The file defaults to /etc/ld.so.cache. This file saves a sorted list of dynamic link library names. ldd Function: used to view the shared libraries required for program running, often used to solve programs Some problems that cannot be run due to missing certain library files.

The above is the detailed content of Share an example explanation of error reporting in Yum. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn