Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
// 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
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)?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.