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

文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/115346.html<

(0)
运维的头像运维
上一篇2025-02-18 01:54
下一篇 2025-02-18 01:55

相关推荐

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注