Home > Article > Operation and Maintenance > Share an example explanation of error reporting in Yum
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
Note:The location of libcurl
ldconfig -v | grep libcurl Found two libcurl
vi /etc/ld.so.conf
ldconfig , regenerate
cache, no return, test yum still does not work
ldconfig -p|grep curl Check the loading
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.
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 libraryConfiguration 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!