LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I need openssl 32-bit on a CentOS 6.4 box. how? (https://www.linuxquestions.org/questions/linux-newbie-8/i-need-openssl-32-bit-on-a-centos-6-4-box-how-4175478392/)

Dallas Caley 09-24-2013 03:10 PM

I need openssl 32-bit on a CentOS 6.4 box. how?
 
My end goal here is to successfully install a program called 'Gold Standard Drug Database'. We have provisioned a CentOS 6.4 (64-bit) server from rackspace to install this on (not quite sure why they got a 64-bit one). The original error that led to this was:

./GSDDUpdate: error while loading shared libraries: libssl.so.10: wrong ELF class: ELFCLASS64

After googling i determined that this was because we had 64-bit drivers.

I've tried a number of ways to do this, the latests was to download this source:
http://www.openssl.org/source/openssl-1.0.1e.tar.gz
and then run these commands:

(download and untar the source, then cd inside, then:

./Configure linux-generic32 --shared
make

on the make i got these errors (after pages of make logs?)

make[2]: Entering directory `/home/dcaley/openssl-1.0.1e/apps'
../libcrypto.so: undefined reference to `rc4_md5_enc'
../libcrypto.so: undefined reference to `mod_exp_512'
collect2: ld returned 1 exit status
make[2]: *** [link_app.gnu] Error 1
make[2]: Leaving directory `/home/dcaley/openssl-1.0.1e/apps'
make[1]: *** [openssl] Error 2
make[1]: Leaving directory `/home/dcaley/openssl-1.0.1e/apps'
make: *** [build_apps] Error 1

unSpawn 09-24-2013 08:32 PM

Quote:

Originally Posted by Dallas Caley (Post 5034046)
I've tried a number of ways to do this,

Did you try installing 32-bit versions of required libraries and exporting an appropriate LD_LIBRARY_PATH?


Quote:

Originally Posted by Dallas Caley (Post 5034046)
Code:

make[2]: Entering directory `/home/dcaley/openssl-1.0.1e/apps'
../libcrypto.so: undefined reference to `rc4_md5_enc'
../libcrypto.so: undefined reference to `mod_exp_512'
collect2: ld returned 1 exit status


Does this post help?: https://www.linuxquestions.org/quest...4/#post4865522

suicidaleggroll 09-24-2013 10:13 PM

Code:

yum install openssl.i686
CentOS and other RPM distros are incredibly easy to run multilib setups. You're making this much more complicate than necessary.

Dallas Caley 09-25-2013 10:52 AM

Thanks got it...
 
Thanks to both of you, unfortunately (for my learning) my boss figured out how to do this last night apparently so i wont get a chance to try these suggestion. If i can get out of him what he did, i'll post it here for others to use.

Dallas Caley 09-25-2013 12:53 PM

Looks like it may have been a combination of the answers.

this is what he did to fix it

yum install glibc.i686
yum install libstdc++.i686
yum install openssl.i686

and something about sim-links that i didn't understand. hope this helps someone...

unSpawn 09-25-2013 04:40 PM

He installed the 32-bit versions. And it's symlink (as in "symbolic link" aka 'man ln').


All times are GMT -5. The time now is 06:10 AM.