LinuxQuestions.org
Visit Jeremy's Blog.
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
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,876

Rep: Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236Reputation: 1236
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: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133Reputation: 2133
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: Slackware
Posts: 8,783

Rep: Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752
Usually, yes.
 
Old 07-23-2015, 02:48 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 18,945

Rep: Reputation: 2850Reputation: 2850Reputation: 2850Reputation: 2850Reputation: 2850Reputation: 2850Reputation: 2850Reputation: 2850Reputation: 2850Reputation: 2850Reputation: 2850
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,427

Rep: Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590
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: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 7,630
Blog Entries: 13

Rep: Reputation: 3157Reputation: 3157Reputation: 3157Reputation: 3157Reputation: 3157Reputation: 3157Reputation: 3157Reputation: 3157Reputation: 3157Reputation: 3157Reputation: 3157
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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? pseudoxiah 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 02:17 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration