Jack B
Jack B

Reputation: 549

CentOS 7 install pecl/pear ius

How do I install pecl/pear on CentOS 7 with PHP 7.2 installed via the IUS repo?

Currently installed is php72u.

I've tried installing php-pear but it results in a PHP error when running pecl:

# pecl
PHP Parse error:  syntax error, unexpected 'new' (T_NEW) in /usr/share/pear/PEAR/Frontend.php on line 91

Upvotes: 2

Views: 1642

Answers (1)

Jack B
Jack B

Reputation: 549

IUS provides the pecl/pear binaries via the package pear1, unlike other repos which use php-pear.

yum install pear
pecl

Upvotes: 3

Related Questions