php Make编译PEAR 错误提示package PHP_Archive not installed怎么解决

php Make编译PEAR 错误提示package PHP_Archive not installed怎么解决

 

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 编译参数.

 

./configure –without-pear –disable-phar

make

make install

 

成功编译安装完成后,再安装pear

 

wget http://pear.php.net/go-pear.phar

/usr/local/php/bin/php go-pear.phar

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容