FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17016&edit=1

  ID: 17016
  Comment by: camilord
  Reported By: camilo3rd@gmail.com
  Summary: Windows: PEAR Installation go-pear.bat config variable
                    php_suffix
  Status: Open
  Type: Bug
  Package: PEAR
  Operating System: Windows 2008 Server 64bit
  Package Version: 1.9.0
  PHP Version: 5.3.1
  New Comment:

i have the same problem.. :(


C:\php>pecl install xdiff
downloading xdiff-1.4.1.tgz ...
Starting to download xdiff-1.4.1.tgz (8,623 bytes)
.....done: 8,623 bytes
4 source files, building
WARNING: php_bin C:\php\php.exe appears to have a suffix \php.exe, but
config variable php_suffix does not match
ERROR: The DSP xdiff.dsp does not exist.

C:\php>pecl config-set php_suffix \php-cgi.exe
config-set succeeded

C:\php>pecl config-set php_bin c:\php\php-cgi.exe
config-set succeeded

C:\php>pecl install xdiff
downloading xdiff-1.4.1.tgz ...
Starting to download xdiff-1.4.1.tgz (8,623 bytes)
.....done: 8,623 bytes
4 source files, building
ERROR: The DSP xdiff.dsp does not exist.

C:\php>pecl install xdiff
downloading xdiff-1.4.1.tgz ...
Starting to download xdiff-1.4.1.tgz (8,623 bytes)
.....done: 8,623 bytes
4 source files, building
ERROR: The DSP C:\php\tmp\pea6EC0.tmp/xdiff.dsp does not exist.


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

[2013-10-05 19:44:40] jcdr

Sorry, deleted the second question mark. It should be
if (preg_match('/(\\/|\\\\|^)([^\\/\\\\]+)?php([^\\/\\\\]+)?$/',

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

[2013-10-05 19:33:42] jcdr

...
I'VE LOST THE WHOLE DAY ON THIS !!!

To finally find that the bug comes from the RegExp in builder.php line
245:

        if (preg_match('/(\\/|\\\\|^)([^\\/\\\\]+)?php(.+)?$/',
                        $this->config->get('php_bin'), $matches)) {

I am using EasyPHP with php_bin = "C:\Program
Files\EasyPHP-DevServer-13.1VC11\binaries\php\php_runningversion\php.exe",

so the RegExp returns:
array (size=4)
   0 => string '\php\php_runningversion\php.exe' (length=31)
   1 => string '\' (length=1)
   2 => string '' (length=0)
   3 => string '\php_runningversion\php.exe' (length=27)

Line 3 should be "php.exe", hence the bug.

BUG: Line 5471 of installer go-pear.phar should be changed
from: if (preg_match('/(\\/|\\\\|^)([^\\/\\\\]+)?php(.+)?$/',
to: if
(preg_match('/(\\/|\\\\|^)([^\\/\\\\]+)?php([^\\/\\\\]+)$/',

For those who already installed PEAR, just change the RegExp in
builder.php.


I cannot believe that PEAR developers have left this bug open for nearly
four years, with hundreds of complaints all over the web.

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

[2012-09-28 19:41:35] felipemanchu

I have the same problem, and spent some time tracing this.
The issue is not that the temporary folder gets deleted is that the
package is extracted outside of the temporary folder.

then when the builder fails to find the extracted package folder it
fails and deletes the temporary folder afterwards.

Hope, that helps some. Still looking to correct this myself. I will post
back if/when I do.

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

[2012-04-19 22:21:49] brentnewland

pecl config-set php_suffix \php-cgi.exe
pecl config-set php_bin C:\pathto\php\php-cgi.exe

PEAR\Builder.php: Line 109 to "return $this->raiseError("The DSP
$dir/$dsp does not exist.")" (add the "$dir/")

It appears the temp directory gets destroyed before the install phase.

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

[2011-02-12 02:59:07] jojo

after I try to set php_sufgfix with
$ pecl config-set php_suffix .exe
get below:
c:\PHP_CI_env>pecl config-set php_suffix .exe
config-set succeeded
then I try:
c:\PHP_CI_env>pecl install xdebug
downloading xdebug-2.1.0.tgz ...
Starting to download xdebug-2.1.0.tgz (301,354 bytes)
................done: 301,354 bytes
66 source files, building
ERROR: The DSP xdebug.dsp does not exist.

the dsp error still be there.
what's wrong?

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

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://pear.php.net/bugs/bug.php?id=17016

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 5, '13 at 8:20p
activeDec 5, '13 at 8:20p
posts1
users1
websitepear.php.net

1 user in discussion

Camilord: 1 post

People

Translate

site design / logo © 2022 Grokbase