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, etc.

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

Recommended from Medium

Selenium WebDriver Architecture Simplified

Using Source Control with Tableau

{UPDATE} Venn Waterfalls: Jigsaw Puzzle Hack Free Resources Generator

Laravel API — Authenticate user with custom driver & different table using auth middleware

Wroc_love.rb 2017 — Ruby conference, subjectively.

Making Sense Of Category Theory

System Design: Distributed Caching with Redis

Does GitHub pull requests have a gender bias?

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, etc.

More from Medium

Multiple PHP versions in single XAMPP on Windows

Tests are important and here’s WHY!

How to Clone Laravel Project from Git Repository and Run it on Local Machine

Xamarin Forms Multilingual App