LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-19-2007, 01:38 AM   #1
mventimi
LQ Newbie
 
Registered: Sep 2007
Posts: 3

Rep: Reputation: 0
"libc.so.6: version `GLIBC_2.4' not found" when running library on different machine


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:

Can't load '/home/markve65/public_html/cgi-bin/blib/arch/auto/GD/GD.so' for module GD: /lib/tls/libc.so.6: version `GLIBC_2.4' not found (required by /home/mventimi/public_html/cgi-bin/blib/arch/auto/GD/GD.so) at /usr/lib/perl5/5.8.8/i686-linux/DynaLoader.pm line 230.
at testGD.pl line 12
Compilation failed in require at testGD.pl line 12.
BEGIN failed--compilation aborted at testGD.pl line 12.


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?
 
Old 09-27-2007, 07:15 AM   #2
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
Find, Build if Necessary And Install

You need to find the library you want by searching for it. Some distros like Fedora and Ubuntu (probably others, too with which I have no experience) make it easy for you to get.

You should be able to get it as source or a distro-specific (Red Hat/Debian) installable package. The nice thing about linux is you can have several library versions. Just make sure your library environment variables include GBLIC_2.4's path.

If you cannot get a binary installation package, you'll need to build from source. In that case, you'll need the most common build tools, gcc, make, and so on. With most source packages, there is usually a very well written README file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/lib/libc.so.6: version 'GLIBC_2.4' not found blviper Linux - Software 2 05-22-2010 10:29 AM
"symbol __pthread_initialize, version GLIBC_2.0 not defined in file libpthread.so.0" citrus Linux - Software 6 01-05-2007 11:24 PM
ntop: /lib/libc.so.6: version `GLIBC_2.4' not found jayakrishnan Linux - Software 4 02-07-2006 04:43 AM
Instalin from bin gives "GLIBC_2.3 not found" Jeozp Linux - Software 11 05-20-2005 03:49 PM
xauth: /lib/i686/libc.so.6: version 'GLIBC_2.3.2' not found yigald Linux - Newbie 0 02-20-2004 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration