Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

What happened to PEAR/PECL libraries?

I noticed recently that while Mac OS X 10.6 ships with PEAR installed for PHP, it’s completely missing from Server 10.6. Does anyone know why? I tried to install PEAR from the Web but it refuses:

curl http://pear.php.net/go-pear | sudo php



(Accept all the defaults)


Downloading package: PEAR.............PHP Deprecated: Function eregi() is deprecated in - on line 1080
ok
Downloading package: Structures_Graph....PHP Deprecated: Function eregi() is deprecated in - on line 1080
ok

Preparing installer..................
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 650
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 697
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 757
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 786
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 914
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 1577
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 1607
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 2038
PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/temp/temp/PEAR/Config.php on line 2091
PHP Fatal error: Cannot redeclare PEAR_calldestructors() (previously declared in /usr/local/temp/PEAR.php:765) in /usr/local/temp/temp/PEAR.php on line 777


This is on my office’s 2.66 GHz mini Server w/4 GB RAM, Mac OS X Server 10.6.4 with all Software Updates applied and Xcode installed.

24-in iMac, 20-in iMac, MacBook, G5 server, Mac OS X (10.6.4)

Posted on Oct 4, 2010 6:19 AM

Reply
5 replies

Oct 14, 2010 1:11 PM in response to Sevardin

David,

I tried what you tried from /usr/local and got the same result. Then I tried it from my home directory as follows:

curl http://pear.php.net/go-pear > go-pear.php
sudo php -q go-pear.php

You can accept all of the default options EXCEPT make sure that you set the "Installation prefix ($prefix)" to /usr/local.

There are more instructions here: http://clickontyler.com/blog/2008/01/how-to-install-pear-in-mac-os-x-leopard/

It gave a lot of deprecation warnings but it worked.

hth

What happened to PEAR/PECL libraries?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.