LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Can a 'c' program runs on Linux 7.1 which is compiled on Linux 6.3 or Linux 6.6 (https://www.linuxquestions.org/questions/linux-general-1/can-a-c-program-runs-on-linux-7-1-which-is-compiled-on-linux-6-3-or-linux-6-6-a-4175548724/)

viskuma 07-23-2015 05:28 AM

Can a 'c' program runs on Linux 7.1 which is compiled on Linux 6.3 or Linux 6.6
 
Can a 'c' program runs on Red Hat Linux 7.1 which is compiled on Red Hat Linux 6.3 or Red Hat Linux 6.6?

wpeckham 07-23-2015 06:30 AM

Yes.
As long as you either ensure that it has no version dependencies, or is static compiled.
Many applications are written so, otherwise they would have to be recompiled for every library version change and the maintainers would go quickly insane.

Ok, perhaps a bad way to express it, but those of us who are insane did not get here THAT WAY! ;-)

suicidaleggroll 07-23-2015 09:41 AM

I assume, based on the version numbers you've listed, that you're talking about RedHat Enterprise or CentOS? Please be specific about the systems you're describing, there is no such thing as "Linux 7.1" or 6.3 or 6.6.

dugan 07-23-2015 11:38 AM

Usually, yes.

jefro 07-23-2015 02:48 PM

What kind of c program? What all does it interact with?

John VV 07-23-2015 06:10 PM

there is no operating system called "linux 7.1" nor "linux 6.3 or 6.6"

now there IS a OLD!!! Debian 7.1
a current RHEL ( RedHat Enterprise Linux ) 7.1 and 6.7

if you are referring to RHEL 6.3 ( the out of date version --by 4 versions and over 2 years)

will that run on RHEL 7.1
WHO KNOWS ????

you have not informed us as to WHAT this unknown program is
it might run?
it might not run?
it might KILL your install ?
WHO KNOWS ?

rtmistler 07-24-2015 09:35 AM

Quote:

Originally Posted by viskuma (Post 5395234)
Can a 'c' program runs on Red Hat Linux 7.1 which is compiled on Red Hat Linux 6.3 or Red Hat Linux 6.6?

Viskuma,

Welcome to LQ. Perhaps reviewing this link will assist you in making your questions more clear.

- RT


All times are GMT -5. The time now is 12:24 PM.