LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-24-2003, 11:51 AM   #1
jimieee
Member
 
Registered: Aug 2003
Location: London, UK
Distribution: Debian and Fedora for play and RHEL + Solaris for work
Posts: 172

Rep: Reputation: 15
Relocation error GLIBC, pear installer error 127


Hi I'm trying to install apache with php on my Redhat 9 box from source (I need to run apache 1.3, rather than 2). I have apache and mod_ssl running ok, so I moved onto getting php up and running. I made a little script to configure php, which goes as follows:

#!/bin/sh
CC="gcc" \
LDFLAGS="-lstdc++" \
CPPFLAGS="-I/usr/kerberos/include" \
"./configure" \
"--with-apxs=/usr/local/apache/bin/apxs" \
"--with-mysql=/usr/" \
"--with-openssl=/usr/" \
"--with-imap=/usr/" \
"--with-gd=/usr/" \
"--with-ldap=/usr/" \
"--enable-ftp" \
"--with-kerberos" \
"--enable-sysvsem" \
"--enable-sysvshm" \
"--enable-sockets" \
"$@"

which seems to work fine and the make runs without hitch, but when I go to make install:

Installing PHP CLI binary: /usr/local/bin/
[various positive looking output]
Installing PEAR environment: /usr/local/lib/php/
/usr/src/apache/php-4.3.4/sapi/cli/php: relocation error: /usr//lib/libmysqlclie
nt.so.10: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with lin
k time reference
make[1]: *** [install-pear-installer] Error 127
make: *** [install-pear] Error 2

I've googled around, tried lots of fixes recommended by people, even though they were all installing different software. I still don't have a fix though, or a clue the problem is!! Can anybody make any recommendations? Please Please Please help, it is Christmas after all!

Merry Christmas!

Thanks,

James

Last edited by jimieee; 12-30-2003 at 05:26 AM.
 
Old 12-24-2003, 12:46 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Did you su to root?

$ ./configure
$ make
$ su -m <-m flag will log you in as root and stay in pwd>
<password>
# make install
# exit
$
 
Old 12-24-2003, 01:52 PM   #3
jimieee
Member
 
Registered: Aug 2003
Location: London, UK
Distribution: Debian and Fedora for play and RHEL + Solaris for work
Posts: 172

Original Poster
Rep: Reputation: 15
hhmmmm thanks for the advice, tried it but same error. Am I passing bad config commands or something?

Cheers,

James
 
Old 12-24-2003, 01:58 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Does it error when not using your script?
 
Old 12-24-2003, 08:09 PM   #5
jimieee
Member
 
Registered: Aug 2003
Location: London, UK
Distribution: Debian and Fedora for play and RHEL + Solaris for work
Posts: 172

Original Poster
Rep: Reputation: 15
Well without the flags it won't, because Redhat has issues with Kerberos. But when I include just the flags I get a different error - this time during the make command:

gcc: sapi/cli/php_cli.o: No such file or directory
gcc: sapi/cli/getopt.o: No such file or directory
make: *** [sapi/cli/php] Error 1

The simplest version of ./configure I can make is with the

"--with-apxs=/usr/local/apache/bin/apxs" \
"--with-mysql=/usr/" \

lines, then it goes back to the same pear error. hmmmm I suppose there isn't anything wrong with my configuration script huh? Now I'm even more confused!

Thanks for this by the way

Regards,

James
 
Old 12-30-2003, 04:37 AM   #6
jimieee
Member
 
Registered: Aug 2003
Location: London, UK
Distribution: Debian and Fedora for play and RHEL + Solaris for work
Posts: 172

Original Poster
Rep: Reputation: 15
I've been looking around some more and trying new things, I think this is something to do with dependencies in shared libraries. Now I don't know for sure, but I don't think this looks right, I'll put in bold the lines that worry me:

# ldd /usr/src/apache/php-4.3.4/sapi/cli/php

libcrypt.so.1 => /lib/libcrypt.so.1 (0x40028000)
libmysqlclient.so.10 => /usr//lib/libmysqlclient.so.10 (0x40055000)
libresolv.so.2 => /lib/libresolv.so.2 (0x40086000)
libm.so.6 => /lib/tls/libm.so.6 (0x40098000)
libdl.so.2 => /lib/libdl.so.2 (0x400ba000)
libnsl.so.1 => /lib/libnsl.so.1 (0x400be000)
libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
libz.so.1 => /usr//lib/libz.so.1 (0x400d4000)
libnss_files.so.2 => /lib/libnss_files.so.2 (0x400e2000)
libnss_dns.so.2 => /lib/libnss_dns.so.2 (0x400ee000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

as you can see, the files that they depend on have // it the path, which is unusual right? Could this be causing the problem? If so, how would I go about fixing it? Any help much appreciated!!

Thanks!

James

p.s. I should also add that I've got php to "make install" now, but I have to add "--without-pear" to my configuration script. However, when I try to start apache:

# /usr/local/apache/bin/apachectl start
Syntax error on line 208 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr//lib/libmysqlclient.so.10: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
/usr/local/apache/bin/apachectl start: httpd could not be started

ARGH!! Same error!

Last edited by jimieee; 12-30-2003 at 04:52 AM.
 
  


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
Problems running make menuconfig Menestrel Debian 1 06-06-2005 01:35 AM
Errors running 'make install' (wireless network) fatrandy13 Linux - Wireless Networking 4 06-14-2004 12:00 PM
unable to find QT install while running: make xconfig ryedunn Linux - General 2 04-01-2004 12:09 PM
problems running php on slackware 9.1 uglyugly Slackware 1 01-29-2004 06:22 PM
problems running php script rhuser Linux - Software 5 02-14-2003 02:01 PM


All times are GMT -5. The time now is 08:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration