Visit Our UNIX and Linux User Community

OpenSSL usage on Linux Distros

Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users OpenSSL usage on Linux Distros
# 1  
Old 12-09-2019
OpenSSL usage on Linux Distros


My server is Centos 6 i686.
Is it possible get an openssl download from this site

(which is used for 64 bit platforms)
and use it on 32 bit platforms also?

# 2  
Old 12-09-2019
You can build 32 bit on 64 bit source, like this, for example:

 gcc -m32 my64bitsource.c -o my32bitout

So, take a look at the -m32 flag and any additional libs you might need to link in.

So, yes, it is certainly possible, to answer your question (building the source).
# 3  
Old 12-23-2019
Thanks for the suggestion.
But I am not sure how to get the "my64bitsource.c" file in the command.

Because if we install the source rpm like this :

# rpm -i openssl-0.9.8e-12.el5_4.6.src.rpm

then we will get a file like this in rpmbuild/SOURCES :

And the command to patch, configure and compile is like this :

# rpmbuild -ba openssl.spec

So how does the my64bitsource.c come into the picture, and how do we use the above commands in this case.
# 4  
Old 12-23-2019
Check your manual for rpmbuild, specifically the --target PLATFORM option. As Neo pointed out you will need some 32 bit libraries installed on your 64 bit OS to be available to do this cross compiling.
# 5  
Old 12-26-2019

Thanks for all the suggestions, however, my OS is not 64 bit. It is 32 bit.
But I am not sure if the installer (source) for OpenSSL from this site "" is 64 bit or 32 bit as it does not clearly mention anything about the OpenSSL packages available there.

So the reason that I post the question in this forum is because I think that the OpenSSL package that I download from the link above is 64 bit, and I need to use (compile/install) it on a 32 bit system.
# 6  
Old 12-26-2019
You can compile 64 bit source code on 32 bit architecture.

For example, with gcc:

gcc -m32 my64bitcode.c -o my32bitcodeout

You may need to install gcc-multlib by using the following commands (ubuntu examples):

For C :
sudo apt-get install gcc-multilib

For C++:
sudo apt-get install g++-multilib

You can easily Google this situation and find many solutions.

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Fedora

On Installing Multiple Linux Distros on a Computer

Guys, I was planning to install Ubuntu, Fedora and Backtrack on the same computer (along with Windows 7). My Specifications are: 2.67 Core i5 4GB DDR3 RAM 500 GB HDD I have a system running Windows 7 with 3 partitions (240, 130, 130) GBs. And I was planning on freeing out 30GB of space and... (3 Replies)
Discussion started by: hMeU
3 Replies

2. Red Hat

Points to compare Linux distros

I 've a question regarding which points should be considered to compare 2 different linux distros say RedHat & Ubuntu. for a production environment non-db applications ... any help will be appreciated .. (1 Reply)
Discussion started by: fugitive
1 Replies

3. Linux

Multiple linux distros in one box

Hi, This will be my first time to install 5 distros in one box, the ff. are: openSUSE 11, openSUSE11.1, Ubuntu 8.04, Ubuntu 8.10, Fedora 10 Now, I'm confused how would I partitioned my hard disk with a capacity of 80Gb where there is only one swap and no idea yet how to play with boot... (2 Replies)
Discussion started by: etcpasswd
2 Replies

4. Linux

is there a guide for linux distros?

i`m trying to fidnd a distro that is good for m but it is not that easy i discovered, so if anybody please can give som tips i would been very happy thank you for reading:) (3 Replies)
Discussion started by: KMLiveLinux
3 Replies

5. Ubuntu

Universal Repositories for All Linux Distros

Is it possible to use Other Distro's ( i.e Debian's or Ubuntu's ) repositories in Fedora? If not then what should be done to make common repositories for all linux distros. regards, Arun Maurya (2 Replies)
Discussion started by: arun_maurya
2 Replies

Featured Tech Videos