Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I built a qt application on Ubuntu karmic. I transferred the binary to a red hat Linux enteprise 5.3 system and when I click on the program it doesn't do anything. Are they compatible or am I forgetting something? both computers run a quad-core 64bit cpu

share|improve this question
1  
Instead of clicking the program, try executing it from the command line and see if you get any errors. –  jonescb Mar 1 '10 at 21:49
    
yeah thanks, it did say its looking for libQtGUI.so.4 –  user16654 Mar 1 '10 at 22:02

2 Answers 2

up vote 3 down vote accepted

Generally, no. You can of course recompile if you have the source code. The reason this fails could be one of several things, but generally applications fail to transfer from one to the other because they are linked to dynamic libraries that are not provided by the other platform. ("Not provided" here can also mean "provides the wrong version", or "provided, but not in the expected place" in addition to "just not there".)

If you build a static binary, chances are much better that it will run, because it doesn't depend on external libraries. That's not a guarantee -- you could still end up with a binary that won't run on the other platform due to kernel incompatibilities or other problems.

If you run the program on the commandline, you should get an error message that will help you determine exactly why it fails to run.

share|improve this answer
    
yeah, debian (from which ubuntu is derived) does some tricks with parallel lib versions that as far as I know fedora does not bother with, so I would hardly expect portability in that direction, at least. –  Justin Smith Mar 1 '10 at 23:05

Well, you probably need to install QT (the gui library from Troll Tech) that KDE is based on. Just keep trying until it works, install the library (which is easy enough with yum, probably, perhaps you will need to make a sym link from the version it wants to the version you have.

share|improve this answer
    
Even if I do that it is not enough. The gcc versions being used on both distros are different. I had to build on RHEL. –  user16654 Jun 28 '10 at 17:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.