Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Troubleshooting of error report in Yum: "pycurl.so: undefined symbol: CRYPTO_num_locks"

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Recently, a problem was found in my 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: location of libcurl

Check to see if there are any abnormal configurations in libcurl

Ldconfig-v | grep libcurl found two libcurl

Check the configuration of ld.so.conf

Compare with the normal testing machine

According to the previous ldd, try to get rid of local lib

Vi / etc/ld.so.conf

Execute ldconfig, rebuild cache, no return, test yum still fails

Ldconfig-p | grep curl check the load

Keep looking.

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

Yum can be used now.

Knowledge expansion:

Ldconfig is a dynamic link library management command. In order to make the dynamic link library shared by the system, it is necessary to run the dynamic link library management command-ldconfig.

The main purpose of the ldconfig command is to search out the shareable dynamic link library (lib*.so*) under the default search directory (/ lib and / usr/lib) and the directory listed in the dynamic library configuration file / etc/ld.so.conf, and then create the connection and cache files needed by the dynamic loader (ld.so). The cache file defaults to / etc/ld.so.cache, which holds a sorted list of dynamic link library names.

Ldd function: used to view the shared libraries needed for a program to run. It is often used to solve some problems in which a program cannot run due to the lack of a library file.

Summary

The above is the whole content of this article, I hope that the content of this article can bring some help to your study or work, if you have any questions, you can leave a message and exchange, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report