Alex Rivera | Logout

I am unable to run a C++ program in Debian(Ubuntu) that works in Redhat(Centos)

Asked 2012-10-18T18:29:41.710
11

TLDR: Having trouble compiling a C++ program that worked in Centos Redhat in Ubuntu Debian. Is there anything I Should be aware of between these two that would make a C++ program compiled using the same compiler not work?

Hello, I'm trying to compile and run Germline (http://www1.cs.columbia.edu/~gusev/germline/). It works fine in RedHat Centos, but because Centos isn't as supported as Ubuntu is for most things I switched. And now this program does not work. It's entirely possible it's using some kind of RedHat only functionality, but I'm using the same compiler (g++) to compile it in both environments.

I've been pulling my hair out just trying to get this thing to work on Ubuntu as it is much nicer to work with, but as of now when I "make all" the project in ubuntu it will compile and the tests spin(Don't ever finish) forever. No matter what binaries I use (Compiled in Centos and copied, the failed test binaries I just mentioned etc), the program just always freezes.

Kinda long, sorry. My main question is this: Is there any other C++ compiler alternatives I can try? Is there any Red-hat C++ libraries I might be missing. Or major differences in their C++ implementations that mighjt cause this?

Edit
Report

1 Answer

1

You should specify what the first error is really, you've not provided enough information to say what the problem is, however I'd guess a missing dependency.

Any decent package comes with a list of dependencies, have you checked for this and checked the requirements are there?

In the absence of a requirements and dependency list, a good rule of thumb in this situation is to check what the very first error is and fix that. For example if the first error says "missing foolib.h" then you need to install "foolib" for that machine.

answered 2012-10-18T18:39:50.257

Your Answer