Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pear install for macports PHP5

Tags:

php

macports

pear

I have PHP5 installed via macports in /opt/local/..the default location for macports. There's no portfile for pear. If I do a standard pear install from the pear site what directory location should pear be placed in to work with PHP?

like image 237
demet8 Avatar asked Feb 12 '11 22:02

demet8


People also ask

Is PHP PEAR installed?

Yes, the standard PEAR packages are included in all PHP installations.

How do I download pears?

To install the PEAR package manager by using the Web front end, follow these steps: Point your browser at http://pear.php.net/go-pear. Your browser displays the PHP source as plain text. Choose File Save As or File Save Page As (depending on your browser).


1 Answers

While the curl option works, it won't update as you update your ports. An alternative:

sudo port install php5 +pear

This will install the variant of php5 with pear, in the same location as downloading above, and it will update as you update macports.

like image 105
TrippyD Avatar answered Sep 19 '22 21:09

TrippyD