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

From: Date: Sat, 09 May 2009 21:17:07 +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-137071@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:      
+Assigned To:      fb-req-jani
 New Comment:

Please check your Makefile for lines beginning with:

bindir =
exec_prefix =
prefix =
PEAR_INSTALLDIR =


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

[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...

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

[2009-05-09 04:23:25] jani@php.net

Does /usr/local/lamp/php/bin/php-config exist?
If so, what do these output:

# /usr/local/lamp/php/bin/php-config --prefix

And

# /usr/local/lamp/php/bin/php-config --php-binary


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

[2009-05-08 19:48:33] oxie at live dot nl

Description:
------------
The generated scripts bin/pear and bin/pecl have the wrong path to the
PHP executable. The path in the script look likes
'/usr/local/lamp/apache2/bin/apxs2/bin/apxs/bin/php', where it must be
'/usr/local/lamp/php/bin/php'. When manually chaning the path to that,
it is working.

The output that i get is, logically:
exec: 28: /usr/local/lamp/apache2/bin/apxs/bin/php: not found

My configure statement:
./configure --prefix=/usr/local/lamp/php
--with-apxs2=/usr/local/lamp/apache2/bin/apxs
--with-pear=/usr/local/lamp/php/lib/php [a lot of extensions]

The bin/pear script: http://pastebin.com/d132560e



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


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



Thread (11 messages)

« previous php.bugs (#137071) next »