0712-2888027 189-8648-0214
微信公众号

孝感风信网络科技有限公司微信公众号

当前位置:主页 > 技术支持 > Linux > php Make编译PEAR package PHP_Archive not installed解决方法

php Make编译PEAR package PHP_Archive not installed解决方法

时间:2024-04-25来源:风信官网 点击: 8787次
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
热门关键词: php Make编译 PHP_Archive PEAR
栏目列表
推荐内容
热点内容
展开