php Make编译PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.

在编译安装php的时候,make完之后,出现了如下报错:

Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
pharcommand.inc
directorygraphiterator.inc
clicommand.inc
invertedregexiterator.inc
directorytreeiterator.inc
phar.inc
 
Build complete.
Don't forget to run 'make test'.
php 的编译时需要依赖pear package ,目前的问题错误"PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.",已经明显报出这个问题。
因此编译使用参数 --without-pear   将pear 屏蔽掉编译安装后,再进行安装;同时因为phar 属于pear的一个库 ,所以不将phar关闭掉,同时还会报这个错误,
同时需要使用 --disable-phar   编译参数. 
在 --without-pear 跟上 --disable-phar  就可以解决这个问题了
./configure --without-pear  --disable-phar
成功编译安装完成后,再安装pear
 
wget  http://pear.php.net/go-pear.phar 
/usr/local/php/bin/php go-pear.phar
原文地址:https://www.cnblogs.com/maohedashu/p/14554800.html