Install PEAR on macOS 10.15 Catalina

Prerequisites

Install PEAR

cd /tmp
curl -s -O https://pear.php.net/install-pear-nozlib.phar
sudo php install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin

Upgrade PEAR

sudo pear channel-update pear.php.net
sudo pecl channel-update pecl.php.net
sudo pear upgrade-all --ignore-errors

Configure PHP

php --ini
include_path = ".:/usr/local/lib/php/pear"

Update PEAR and PECL channels

sudo pear channel-update pear.php.net
sudo pecl channel-update pecl.php.net

Done!

Questions?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store