LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-23-2015, 05:28 AM   #1
viskuma
LQ Newbie
 
Registered: Jul 2015
Posts: 1

Rep: Reputation: Disabled
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?

Last edited by viskuma; 07-23-2015 at 11:46 PM.
 
Old 07-23-2015, 06:30 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,623

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
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! ;-)
 
Old 07-23-2015, 09:41 AM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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.
 
Old 07-23-2015, 11:38 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,223

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Usually, yes.
 
Old 07-23-2015, 02:48 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
What kind of c program? What all does it interact with?
 
Old 07-23-2015, 06:10 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 ?
 
Old 07-24-2015, 09:35 AM   #7
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by viskuma View Post
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors in Allegro in a C++ program, compiled with gcc, in a Linux console AlegroGuy Programming 9 11-17-2010 07:17 PM
A C program which was compiled properly in DevCPP is not compiling in Linux-Fedora. varalakshmi Linux - Newbie 2 10-30-2010 03:37 AM
anybody knows a good data recovery program that runs on linux? anon104 Linux - Software 4 06-04-2007 03:08 PM
Program runs on Win32 platform, but not on Linux. duffmckagan Programming 16 01-03-2006 02:06 PM
pre-compiled CPU stress program for linux glock19 Linux - General 1 11-01-2001 12:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration