Re: PEAR segfaulting

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ashley M. Kirchner wrote:
> 
>    Typing 'pear segmentation fault' in Google produces tons of responses
> so I know I'm not the only one with this issue, but I'll be damned if I
> can figure out what the problem is and how to fix it.  I rolled my own
> PHP 5.3.0 from source.  Compilation went fine, no errors.  Installation
> went without any errors.  I can run 'pecl' and install some packages,
> but when I try to run 'pear', it segfaults after it downloads a package:
> 
> --------------------
> $ pear install DB
> WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
> downloading DB-1.7.13.tgz ...
> Starting to download DB-1.7.13.tgz (132,246 bytes)
> .............................done: 132,246 bytes
> Segmentation fault
> --------------------
> 
> 
>    Running it with -vvv gives me:
> 
> --------------------
> $ pear -vvv install DB
> 
> Warning: file_exists(): Unable to find the wrapper "channel" - did you
> forget to enable it when you configured PHP? in
> PEAR/Downloader/Package.php on line 1510
> 
> Warning: is_file(): Unable to find the wrapper "channel" - did you
> forget to enable it when you configured PHP? in
> PEAR/Downloader/Package.php on line 1520
> 
> Warning: is_file(): Unable to find the wrapper "channel" - did you
> forget to enable it when you configured PHP? in
> PEAR/Downloader/Package.php on line 1520
> WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
> pear/DB: Skipping required dependency "pear/PEAR" version 1.9.0, already
> installed as version 1.8.0
> Downloading "http://pear.php.net/get/DB-1.7.13.tgz";
> downloading DB-1.7.13.tgz ...
> Starting to download DB-1.7.13.tgz (132,246 bytes)
> .............................done: 132,246 bytes
> Segmentation fault
> --------------------
> 
> 
>    So, is this a known issue?

Hi,

Most likely your machine has a borked zlib library.  Try:

pear install -Z DB

This will download the uncompressed .tar and should work fine.  If it
does, look to fix your zlib install and re-build PHP.

Greg

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux