1. Questions
using Yum to install the software under CentOS, the following error message appears :
# yum Install
There was a problem importing one of the Python modules
Required to run Yum. The error leading to this problem was:
/usr/lib/python2.6/site-packages/pycurl.so:undefined Symbol:crypto_set_locking_callback
Install a package which provides this module, or
Verify the module is installed correctly.
It ' s possible that the above module doesn ' t match the
Current version of Python, which is:
2.6.6 (r266:84292, Jan 22 2014, 09:37:14)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
If You cannot solve this problem yourself and go to
The Yum FAQ at:
Http://yum.baseurl.org/wiki/Faq
2. View current Environment variables
# env | grep LD
Oldpwd=/root
Ld_library_path=:/usr/local/lib
The directory of the Run-time link library was set by me as the/usr/local/lib.
To cancel this run-time link library try:
# export-n Ld_library_path
# yum Install BusyBox
Loaded plugins: Fastestmirror
Set up the installation process
Loading mirror speeds from cached hostfile
* Base:mirrors.btte.net
* extras:mirrors.opencas.cn
* updates:mirror.bit.edu.cn
Base | 3.7 KB 00:00
Extras | 3.4 KB 00:00
Updates | 3.4 KB 00:00
Resolving dependencies
--Perform a transaction check
---> Package busybox.i686 1:1.15.1-21.el6_6 'll be installed
Complete dependency Calculation
.
.
.
This is really the problem with this link library.
3. Analysis:
Should be a module of the Yum-dependent Python module. However, when loading, the wrong directory is found, the result is the wrong module to load the link library.
CentOS has undefined symbol:crypto_set_locking_callback when installing software with Yum