eruditass
eruditass

Reputation: 123

newer gcc binary running on older systems

I have a binary compiled with gcc 4.4.0 and am trying to run it on an older system, which does not have gcc 4.4.0. It doesn't work. The error is not that it can't find a symbol, but it just doesn't run correctly and hangs. The differences between the systems are CentOS 5.5 vs 5.2, and gcc 4.4.0 vs 3.4.6.

What can I do to get it running on that system without installing gcc 4.4.0? Are there run-time libraries we can put on it? Simply copying the dependecies over and setting the library path does not appear work.

The binary requires features of gcc 4.4.0.

Upvotes: 2

Views: 600

Answers (2)

diverscuba23
diverscuba23

Reputation: 2185

I've run into a situation where I had to do this recently. My solution was to compile the executable as a statically linked application so there was no issues with compatibility between my application and needed libraries.

Upvotes: 1

Lekensteyn
Lekensteyn

Reputation: 66415

If you're compiling, do it on a machine with older GLIBC libraries. I've set up a Debian in VirtualBox, that's works flawless when compiling Apache, MySQL and PHP.

Upvotes: 1

Related Questions