#48194 [Opn->Fbk]: Invalid path to php binary in generated pear and pecl scripts

From: Date: Mon, 25 May 2009 08:09:20 +0000
Subject: #48194 [Opn->Fbk]: Invalid path to php binary in generated pear and pecl scripts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137697@lists.php.net to get a copy of this message
 ID:               48194
 Updated by:       jani@php.net
 Reported By:      oxie at live dot nl
-Status:           Open
+Status:           Feedback
 Bug Type:         Compile Failure
 Operating System: Ubuntu 8.04.2
 PHP Version:      5.2.9
 Assigned To:      jani
 New Comment:

There really isn't any way those scripts can get such weird paths
unless you have some environment variables set with those paths. 

Also, how far this path is valid:

/usr/local/lamp/apache2/bin/apxs2/bin/apxs/bin/

I suggest you check your apache installation, maybe it's somehow
leaking the paths. I can not reproduce this with clean, properly
installed system using distro packages for Apache.


Previous Comments:
------------------------------------------------------------------------

[2009-05-24 17:00:11] oxie at live dot nl

Of course:

oxan@webdev:~$ /usr/local/lamp/php/bin/php -r 'echo PHP_BINDIR;'
/usr/local/lamp/php/bin

------------------------------------------------------------------------

[2009-05-22 13:14:46] jani@php.net

Can you give the output of this too:

# /usr/local/lamp/php/bin/php -r 'echo PHP_BINDIR;' 

------------------------------------------------------------------------

[2009-05-10 09:51:07] oxie at live dot nl

They are there in this order:

bindir = ${exec_prefix}/bin
exec_prefix = ${prefix}
prefix = /usr/local/lamp/php
PEAR_INSTALLDIR = /usr/local/lamp/php/lib/php

(i have generate my makefile using the ./configure statement)

*the bin/pear scripted reposted (it was expired):
http://pastebin.com/f640aacf

------------------------------------------------------------------------

[2009-05-09 21:17:07] jani@php.net

Please check your Makefile for lines beginning with:

bindir =
exec_prefix =
prefix =
PEAR_INSTALLDIR =

------------------------------------------------------------------------

[2009-05-09 10:34:33] oxie at live dot nl

Yes, they exists.

oxan@webdev:~$ /usr/local/lamp/php/bin/php-config --prefix
/usr/local/lamp/php
oxan@webdev:~$ /usr/local/lamp/php/bin/php-config --php-binary
/usr/local/lamp/php/bin/php

Seems to be good...

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/48194

-- 
Edit this bug report at http://bugs.php.net/?id=48194&edit=1



Thread (11 messages)

« previous php.bugs (#137697) next »