Re: PEAR segfaulting
| From: | Greg Beaver | Date: | Tue, 20 Oct 2009 04:09:46 +0000 |
| Subject: | Re: PEAR segfaulting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299085@lists.php.net to get a copy of this message | ||
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