yum stops to work

pppplus

Verified User
Joined
Dec 19, 2008
Messages
528
Hi

I've a problem with yum, stopping to work.
I read a lot of things, but always the same problem.

Thanks to help me.

Code:
# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

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

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Nov  6 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

Some informations :
# python --version
Python 2.7.5

# ldconfig -p -N -X | grep curl
libcurl.so.4 (libc6,x86-64) => /usr/local/lib/libcurl.so.4
libcurl.so (libc6,x86-64) => /usr/local/lib/libcurl.so

# which python
/bin/python

Thanks for your help !!
 
Thanks Richard.

I've already read these pages, and it not s
 
Hello,

If the help articles that Richard suggested did not help you to solve the issue then I'd suggest that you either rebuild pycurl or hire somebody (it can be some active members of the forums or from any other company) to fix it for you. Though I don't have a ready guide I can investigate the issue and fix it.
 
If you'd need to re-build pycurl:
Code:
mv /usr/lib64/python2.6/site-packages/pycurl.so /usr/lib64/python2.6/site-packages/pycurl.so_back
rpm -ihv http://mirror.centos.org/centos/6/os/x86_64/Packages/python-devel-2.6.6-66.el6_8.x86_64.rpm
wget https://dl.bintray.com/pycurl/pycurl/pycurl-7.43.0.2.tar.gz
tar xzf pycurl-7.43.0.2.tar.gz 
cd pycurl-7.43.0.2
python setup.py build --curl-config=/usr/local/bin/curl-config
cp -p build/lib.linux-x86_64-2.6/pycurl.so /usr/lib64/python2.6/site-packages/pycurl.so
 
GRRC complie error after
Code:
python setup.py build --curl-config=/usr/local/bin/curl-config
 
what's the error message?
Aag deleted to fast because of a backup restore but in a few days I'm going to try it again and when the problem raise I will make a screen shot
 
Code:
Using /usr/local/bin/curl-config (libcurl 7.69.1)
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/curl
copying python/curl/__init__.py -> build/lib.linux-x86_64-2.6/curl
running build_ext
building 'pycurl' extension
creating build/temp.linux-x86_64-2.6
creating build/temp.linux-x86_64-2.6/src
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic               -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=gener              ic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/usr/local/include -I/usr/inc              lude/python2.6 -c src/docstrings.c -o build/temp.linux-x86_64-2.6/src/docstrings.o
In file included from src/docstrings.c:4:
src/pycurl.h:4:20: error: Python.h: No such file or directory
src/pycurl.h:5:22: error: pythread.h: No such file or directory
In file included from src/docstrings.c:4:
src/pycurl.h:239: error: expected ‘)’ before ‘*’ token
src/pycurl.h:241: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyListOrTuple_Size’
src/pycurl.h:242: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:265: error: expected ‘)’ before ‘*’ token
src/pycurl.h:267: error: expected ‘)’ before ‘*’ token
src/pycurl.h:269: error: expected ‘)’ before ‘*’ token
src/pycurl.h:270: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:337: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
src/pycurl.h:398: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
src/pycurl.h:417: error: expected specifier-qualifier-list before ‘PyThread_type_lock’
src/pycurl.h:421: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
src/pycurl.h:466: error: expected ‘)’ before ‘*’ token
src/pycurl.h:467: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:475: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:477: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:479: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:482: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:484: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:486: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:489: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:492: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:494: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:503: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:510: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:513: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:521: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:573: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Curl_Type’
src/pycurl.h:574: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CurlMulti_Type’
src/pycurl.h:575: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CurlShare_Type’
src/pycurl.h:577: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:578: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:579: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:580: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:581: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:582: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:584: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:585: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:586: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:591: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:592: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
error: command 'gcc' failed with exit status 1
 
Code:
Using /usr/local/bin/curl-config (libcurl 7.69.1)
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/curl
copying python/curl/__init__.py -> build/lib.linux-x86_64-2.6/curl
running build_ext
building 'pycurl' extension
creating build/temp.linux-x86_64-2.6
creating build/temp.linux-x86_64-2.6/src
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic               -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=gener              ic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DPYCURL_VERSION="7.43.0.2" -DHAVE_CURL_SSL=1 -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/usr/local/include -I/usr/inc              lude/python2.6 -c src/docstrings.c -o build/temp.linux-x86_64-2.6/src/docstrings.o
In file included from src/docstrings.c:4:
src/pycurl.h:4:20: error: Python.h: No such file or directory
src/pycurl.h:5:22: error: pythread.h: No such file or directory
In file included from src/docstrings.c:4:
src/pycurl.h:239: error: expected ‘)’ before ‘*’ token
src/pycurl.h:241: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyListOrTuple_Size’
src/pycurl.h:242: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:265: error: expected ‘)’ before ‘*’ token
src/pycurl.h:267: error: expected ‘)’ before ‘*’ token
src/pycurl.h:269: error: expected ‘)’ before ‘*’ token
src/pycurl.h:270: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:337: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
src/pycurl.h:398: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
src/pycurl.h:417: error: expected specifier-qualifier-list before ‘PyThread_type_lock’
src/pycurl.h:421: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
src/pycurl.h:466: error: expected ‘)’ before ‘*’ token
src/pycurl.h:467: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:475: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:477: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:479: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:482: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:484: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:486: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:489: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:492: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:494: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:503: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:510: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:513: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:521: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:573: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Curl_Type’
src/pycurl.h:574: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CurlMulti_Type’
src/pycurl.h:575: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CurlShare_Type’
src/pycurl.h:577: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:578: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:579: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:580: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:581: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:582: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:584: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:585: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:586: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:591: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/pycurl.h:592: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
error: command 'gcc' failed with exit status 1
Try:
Code:
yum install python-devel
 
Then just use rpm of python-devel (wget and install it using "rpm -ihv").
 
I have been trying that yesterday for an hour and tried different how to's on internet none of them did work, please post if possible a step by step guide , thanks
 
I have been trying that yesterday for an hour and tried different how to's on internet none of them did work, please post if possible a step by step guide , thanks


Step 1 Find program that has ability SFTP

Step 2 Download python-devel From OS mirrors link Paackage like eg. " https://centos.pkgs.org/7/centos-x86_64/python-devel-2.7.5-86.el7.x86_64.rpm.html "

Step 3 Upload that RPM Package to your server with SFTP

Step 4 use command to install from RPM
rpm -ihv "YournameRpm.rpm"
 
The problem not solved because Failed dependencies

# ll *.rpm
-rw-r--r-- 1 root root 98100 Oct 14 2020 python-2.7.5-89.el7.x86_64.rpm
-rw-r--r-- 1 root root 407980 Oct 14 2020 python-devel-2.7.5-89.el7.x86_64.rpm
-rw-r--r-- 1 root root 5867796 Oct 14 2020 python-libs-2.7.5-89.el7.i686.rpm

# rpm -ihv *.rpm
error: Failed dependencies:
python-libs(x86-64) = 2.7.5-89.el7 is needed by python-2.7.5-89.el7.x86_64
python < 2.7.5-89.el7 conflicts with python-devel-2.7.5-89.el7.x86_64
libbz2.so.1 is needed by python-libs-2.7.5-89.el7.i686
libc.so.6 is needed by python-libs-2.7.5-89.el7.i686
libc.so.6(GLIBC_2.0) is needed by python-libs-2.7.5-89.el7.i686
libc.so.6(GLIBC_2.1) is needed by python-libs-2.7.5-89.el7.i686
libc.so.6(GLIBC_2.1.2) is needed by python-libs-2.7.5-89.el7.i686
libc.so.6(GLIBC_2.1.3) is needed by python-libs-2.7.5-89.el7.i686
libc.so.6(GLIBC_2.15) is needed by python-libs-2.7.5-89.el7.i686
libc.so.6(GLIBC_2.2) is needed by python-libs-2.7.5-89.el7.i686
libc.so.6(GLIBC_2.3) is needed by python-libs-2.7.5-89.el7.i686
libc.so.6(GLIBC_2.3.2) is needed by python-libs-2.7.5-89.el7.i686
libc.so.6(GLIBC_2.3.4) is needed by python-libs-2.7.5-89.el7.i686
libc.so.6(GLIBC_2.4) is needed by python-libs-2.7.5-89.el7.i686
libc.so.6(GLIBC_2.7) is needed by python-libs-2.7.5-89.el7.i686
libcrypt.so.1 is needed by python-libs-2.7.5-89.el7.i686
libcrypt.so.1(GLIBC_2.0) is needed by python-libs-2.7.5-89.el7.i686
libcrypto.so.10 is needed by python-libs-2.7.5-89.el7.i686
libcrypto.so.10(OPENSSL_1.0.1_EC) is needed by python-libs-2.7.5-89.el7.i686
libcrypto.so.10(OPENSSL_1.0.2) is needed by python-libs-2.7.5-89.el7.i686
libcrypto.so.10(libcrypto.so.10) is needed by python-libs-2.7.5-89.el7.i686
libdb-5.3.so is needed by python-libs-2.7.5-89.el7.i686
libdl.so.2 is needed by python-libs-2.7.5-89.el7.i686
libdl.so.2(GLIBC_2.0) is needed by python-libs-2.7.5-89.el7.i686
libdl.so.2(GLIBC_2.1) is needed by python-libs-2.7.5-89.el7.i686
libexpat.so.1 is needed by python-libs-2.7.5-89.el7.i686
libffi.so.6 is needed by python-libs-2.7.5-89.el7.i686
libgdbm.so.4 is needed by python-libs-2.7.5-89.el7.i686
libgdbm_compat.so.4 is needed by python-libs-2.7.5-89.el7.i686
libm.so.6 is needed by python-libs-2.7.5-89.el7.i686
libm.so.6(GLIBC_2.0) is needed by python-libs-2.7.5-89.el7.i686
libm.so.6(GLIBC_2.1) is needed by python-libs-2.7.5-89.el7.i686
libncursesw.so.5 is needed by python-libs-2.7.5-89.el7.i686
libnsl.so.1 is needed by python-libs-2.7.5-89.el7.i686
libnsl.so.1(GLIBC_2.0) is needed by python-libs-2.7.5-89.el7.i686
libpanelw.so.5 is needed by python-libs-2.7.5-89.el7.i686
libpthread.so.0 is needed by python-libs-2.7.5-89.el7.i686
libpthread.so.0(GLIBC_2.0) is needed by python-libs-2.7.5-89.el7.i686
libpthread.so.0(GLIBC_2.1) is needed by python-libs-2.7.5-89.el7.i686
libpthread.so.0(GLIBC_2.1.1) is needed by python-libs-2.7.5-89.el7.i686
libpthread.so.0(GLIBC_2.2) is needed by python-libs-2.7.5-89.el7.i686
libreadline.so.6 is needed by python-libs-2.7.5-89.el7.i686
libsqlite3.so.0 is needed by python-libs-2.7.5-89.el7.i686
libssl.so.10 is needed by python-libs-2.7.5-89.el7.i686
libssl.so.10(libssl.so.10) is needed by python-libs-2.7.5-89.el7.i686
libtinfo.so.5 is needed by python-libs-2.7.5-89.el7.i686
libutil.so.1 is needed by python-libs-2.7.5-89.el7.i686
libutil.so.1(GLIBC_2.0) is needed by python-libs-2.7.5-89.el7.i686
libz.so.1 is needed by python-libs-2.7.5-89.el7.i686
libz.so.1(ZLIB_1.2.0) is needed by python-libs-2.7.5-89.el7.i686
 
Back
Top