[SOLVED]Restoring curl to correct version

Issues related to applications and software problems
Post Reply
TomHogervorst
Posts: 2
Joined: 2018/11/19 15:34:45

[SOLVED]Restoring curl to correct version

Post by TomHogervorst » 2018/11/19 15:51:36

Recently, I installed a newer version of curl (version 7.62 for RHEL 7) in an attempt to run a certain piece of software that required it. However, ever since I installed that version of curl, I get the following error when using 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, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
I think that this error occurs because the curl on my machine doesn't match the curl that the python curl library expects. The best solution would be, I think, to revert to the expected version of curl: version 7.29. How can I best go about doing this reversion without access to yum?

Additional info: I did find this git page: https://git.centos.org/summary/rpms!curl.git , but there is no .rpm file on this repository, as far as I can tell, so I don't know how to use the files in this repository to install that version of curl
Last edited by TomHogervorst on 2018/11/20 14:54:32, edited 1 time in total.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Restoring curl to correct version

Post by TrevorH » 2018/11/19 16:21:18

Download the current versions of all the relevant packages from your local CentOS mirror. Those are likely to be curl, libcurl and maybe libcurl-devel. You'll have to use rpm to install them and probably need to use --oldpackage to make them install.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

TomHogervorst
Posts: 2
Joined: 2018/11/19 15:34:45

Re: Restoring curl to correct version

Post by TomHogervorst » 2018/11/20 12:50:20

Thanks for your reply! This solved my problem.

User avatar
TrevorH
Site Admin
Posts: 33219
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Restoring curl to correct version

Post by TrevorH » 2018/11/20 12:57:49

We definitely do not recommend use of the "City-fan" yum repo, in case that's where you got the broken one from...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply