Your skill will accomplish what the force of many cannot |
|
PerlMonks |
"libc.so.6: version `GLIBC_2.4' not found" when running library on different machineby mventimi (Initiate) |
on Sep 21, 2007 at 05:15 UTC ( [id://640269]=perlquestion: print w/replies, xml ) | Need Help?? |
mventimi has asked for the wisdom of the Perl Monks concerning the following question: First, let me say that I'm not sure if this is more of a Perl or Linux question. If it's the latter, then I apologize in advance for posting this in the Monastery. I am trying to run a customized version of the GD graphics library from a Perl script on my web page, which is hosted by another company. To do this, I downloaded GD, the libraries on which it depends, and the Perl GD interface module to my FC6 machine. I then made the edits I need and built and installed everything. Everything works on my machine, as verified by a test script that I wrote. I then grabbed the entire blib directory that I built and moved it to my web server. It fails with the following (I have CGI::Carp qw(fatalsToBrowser) turned on so that it displays to the web page): Software error:
The Perl script dies at line 12, which is the "use GD;" line. If I comment this out, the script runs fine. My first guess was that I built the library on a machine with a newer version of libc than what was on my web server machine. I checked my web server and it's running RHL9, so I grabbed a copy of RHL9, installed it on a free machine, and rebuilt as above. When I did that, however, the script died with a 500 error, and I get a "Premature end of script headers" in the error log. The obvious answer would be to build this library on the web server machine, but I don't have access to do that. I need to build the library on a different machine and copy it over there. Can anyone give me any hints as to how I can do that? From what I've been able to dig up so far, I'm having a problem because glibc uses symbol versioning and I'm building my library on a machine with a newer glibc. The library then expects these newer versions of symbols on the machine with the older glibc. Is there any way to force the linker to use the older versions of symbols in glibc? Or am I completely off base here?
Back to
Seekers of Perl Wisdom
|
|