PEAR on OS X: Problems
Posted on November 23, 2003
Filed Under /dev/null/ | 38 views |
If you’ve got experience getting PEAR running under OS X, maybe you can help?
The Situation:
I’ve installed Marc Liyanage’s PHP install which should include PEAR support.
A check of the PHP install shows that it’s PHP Version 4.3.4, built Nov 5 2003 03:21:53 with the following include_paths defined: .:/usr/local/php/lib/php:/usr/local/share/pear.
However the PHP cli shows: PHP 4.3.2 (cli) (built: Sep 13 2003 22:04:20). Should the CLI reflect the same version as the installed one? I dunno.
The Problem:
Attempting to execute PEAR from the command line returns:
[chris-adamantium:~] chris% pear
Warning: main(System.php): failed to open stream: No such file or directory in Config.php on line 23
Fatal error: main(): Failed opening required ‘System.php’ (include_path=’.:/usr/lib/php’) in /usr/lib/php/PEAR/Config.php on line 23
System.php resides in /usr/local/php/lib/php/ which means it should be found ala the include_path defined above, shouldn’t it?
Anyone know what I’m doing wrong? What I need to do right to get PEAR running?
Comments
2 Responses to “PEAR on OS X: Problems”
Leave a Reply
`which pear`
There might be more than one executable and your path may have the wrong one first.
Yeah, 10.3’s pear is broken. If you download the src off their site, untar it and copy the System.php file into /usr/lib/php/PEAR , command line pear will work.