Linux – Trying to install libcurl on a Linux RHEL, unable to install openssl

linuxopensslredhat-enterprise-linuxrpm

I am a programmer, and I am trying to give a clear sure fire way for the engineering team to install libcurl on a Linux RHEL machine.

The machine already has the following installed by default:

libcurl.so.4
libssl.so.1.0.0
libcrypto.so.1.0.0
libssh2.so.1.0.1
libcidn-2.12.so

And all of the above are 64 bit. What I am trying to install are 32 bit versions of the following:

libcurl.so.3.0.0
libssl.so.0.9.8e
libcrypto.so.0.9.8e
libcidn-2.5.so

I got the rpm's for most of them, but libcurl is dependent on a lot of things. And I get this error while trying to install libssl:

  $  rpm -ivh openssl-0.9.8e-12.el5_5.7.i386.rpm
  warning: openssl-0.9.8e-12.el5_5.7.i386.rpm: Header V3 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
   Preparing...                ########################################### [100%]
    package openssl-1.0.0-25.el6_3.1.x86_64 (which is newer than openssl-0.9.8e-12.el5_5.7.i386) is already installed
    package openssl-1.0.0-25.el6_3.1.i686 (which is newer than openssl-0.9.8e-12.el5_5.7.i386) is already installed
    file /etc/pki/tls/certs/ca-bundle.crt from install of openssl-0.9.8e-12.el5_5.7.i386 conflicts with file from package ca-certificates-2010.63-3.el6_1.5.noarch
    file /etc/pki/tls/misc/CA from install of openssl-0.9.8e-12.el5_5.7.i386 conflicts with file from package openssl-1.0.0-25.el6_3.1.x86_64
    file /etc/pki/tls/certs/Makefile from install of openssl-0.9.8e-12.el5_5.7.i386 conflicts with file from package openssl-1.0.0-25.el6_3.1.x86_64

openssl does not have the compiled binaries on its page anymore. And I can only find the source rpm's online for RHEL. I tried to use a noarch one instead, but as you can see, it doesn't let me install or update.

Can you please tell me how I can force the installation in this case?

The machine OS is Linux 2.6.32-279.14.1.el6.x86_64

Best Answer

That won't work. RHEL uses a multilib strategy in which you can install 32 and 64-bit versions of certain packages together, but only if they are the exact same version (architecture-independent files will be shared by both packages, so they have to be identical bit for bit). You have libcurl-4 64 bit, can only install libcurl-4 32 bit.

Related Question