Install PEAR on macOS 10.15 Catalina

Prerequisites

  1. Homebrew (install instructions)
  2. autoconf: use command: brew install autoconf
  3. Xcode command-line tools: xcode-select --install

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?

--

--

--

I write stuffs: novels, programs, mobile apps, journal papers, book chapters, etc.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Getting started with CLion

Building Kubernetes Admission Webhooks (Part 1 of 2)

PremadeRecyclerView | RecyclerView becomes easy with this

Camera Look System in Unity

Treasure hunting in video game testing: a tale about using test coverage tool with Unity3D projects

On the Nature and Limits of Algorithms and Intelligence

3 Commandments for CLI Design

Close crop of the Sistine Chapel ceiling painting with God and Adam’s fingers

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
Raptor Kwok

Raptor Kwok

I write stuffs: novels, programs, mobile apps, journal papers, book chapters, etc.

More from Medium

How to add a custom virtual host on Windows 11

How to send e-mail with attachment in Prestashop?

Multiple PHP versions in single XAMPP on Windows

URLs manipulation in PHP (the easy way)

Change your URLs with a simple fluent PHP class