LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   applications built on redhat 5 (http://www.linuxquestions.org/questions/red-hat-31/applications-built-on-redhat-5-a-691736/)

tbucken 12-19-2008 12:07 PM

applications built on redhat 5
 
Hi,

If an application is built on Redhat linux5 should that
application run on SuSe 10.1 ? Are there any special packages
needed.

Tom

acid_kewpie 12-19-2008 04:51 PM

it depends an awful lot about how the app is built. if it's dynamically linked, which a standard c or c++ program is then it will look for certain other libraries to execute, which may or may not match up on the suse box. more details would probably be the best step i expect.

tbucken 12-19-2008 06:09 PM

hello world example
 
// using these command lines - build on lamd7bld

// g++ y.cxx - build on redhat 5 - fails on sus10.1
/*
g++ y.cxx
a.out
Hello world

run a.out on suse 10.1
a.out
Floating exception
*/

// g++ -static -v y.cxx build on redhat 5 - OK on both

// Does anyone know another way to make this work ?

#include <stdio.h>


int main()
{
printf("Hello world\n");

return 1;
}


Tom

lazlow 12-19-2008 10:19 PM

Are you talking Red Hat 5 (ancient, support dropped in 2000?) or RHEL(Red Hat Enterprise Linux)5 (current version)? If you are jumping from RH5 to Suse10.1 it could be that crossing from a 2.4(kernel) based system to a 2.6 based system is just too great.

billymayday 12-19-2008 11:35 PM

Are they both 32 or 64 bit OSs?

acid_kewpie 12-20-2008 01:15 AM

2.4 kernel? rh5 was a 2.0! personally i'd not question that. it's going to be RHEL.

tbucken 12-20-2008 07:55 AM

Hi,


using

RHEL(Red Hat Enterprise Linux)5 (current version)?

64 bit

Tom

lazlow 12-20-2008 08:29 AM

Ok is the Suse you are trying to run on 32bit or 64bit.

Valery Reznic 12-20-2008 01:36 PM

Quote:

Originally Posted by tbucken (Post 3381661)
// using these command lines - build on lamd7bld

// g++ y.cxx - build on redhat 5 - fails on sus10.1
/*
g++ y.cxx
a.out
Hello world

run a.out on suse 10.1
a.out
Floating exception
*/

// g++ -static -v y.cxx build on redhat 5 - OK on both

// Does anyone know another way to make this work ?

#include <stdio.h>


int main()
{
printf("Hello world\n");

return 1;
}


Tom

You can try statifier (http://statifier.sf.net) or Ermine (http://magicErmine.com)
Both of them pack dynamically-linked executable and all it's shared libraries into one self-contained executable. This executable has no dependencies and can run on virtually any Linux distribution.
Statifier is licensed under GPL. Ermine - commercial. On the other hand Ermine better work on systems with memory randomization

tbucken 12-22-2008 09:03 AM

running on 64 bit SuSe
 
built on 64 bit redhat 5.0 trying to run on 10.1 64 bit SuSe

lazlow 12-22-2008 02:57 PM

Tbucken

You have to be careful on the RHEL/RH thing. If you do not, it is just going to cause confusion. Basically get used to using the RHEL5 notation, instead of RH5. Unless you are running on different hardware (amd vs intel, etc), I have no idea why it is spitting out that error. You did install everything (gcc, etc) via the packet managers on both machines? If you compiled GCC(etc) yourself, an unusual flag may have been set. You are using (roughly) the same GCC version on both machinse (4.X)?


All times are GMT -5. The time now is 04:17 AM.