时间:2021-07-01 10:21:17 帮助过:3人阅读
[root@AY130324201613791bca Fileinfo-1.0.4]# pecl install fileinfo
WARNING: "pear/Fileinfo" is deprecated in favor of "channel://php-src/ext/fileinfo/in php sources"
WARNING: channel "pear.php.com" has updated its protocols, use "pecl channel-update pear.php.com" to update
downloading Fileinfo-1.0.4.tgz ...
Starting to download Fileinfo-1.0.4.tgz (5,835 bytes)
.....done: 5,835 bytes
3 source files, building
WARNING: php_bin /alidata/server/php/bin/php appears to have a suffix /bin/php, but config variable php_suffix does not match
running: phpize
Cannot find config.m4.
Make sure that you run '/alidata/server/php/bin/phpize' in the top level source directory of the module
ERROR: `phpize' failed
主要是这句
Make sure that you run '/alidata/server/php/bin/phpize' in the top level source directory of the module
在linux下安装fileinfo扩展时,出现如下错误提示,是什么个意思(百度过了,找不到答案)
[root@AY130324201613791bca Fileinfo-1.0.4]# pecl install fileinfo
WARNING: "pear/Fileinfo" is deprecated in favor of "channel://php-src/ext/fileinfo/in php sources"
WARNING: channel "pear.php.com" has updated its protocols, use "pecl channel-update pear.php.com" to update
downloading Fileinfo-1.0.4.tgz ...
Starting to download Fileinfo-1.0.4.tgz (5,835 bytes)
.....done: 5,835 bytes
3 source files, building
WARNING: php_bin /alidata/server/php/bin/php appears to have a suffix /bin/php, but config variable php_suffix does not match
running: phpize
Cannot find config.m4.
Make sure that you run '/alidata/server/php/bin/phpize' in the top level source directory of the module
ERROR: `phpize' failed
主要是这句
Make sure that you run '/alidata/server/php/bin/phpize' in the top level source directory of the module
那么试试手动安装:
1.先看下phpize路径在哪里which phpize
(这里假设在\use\bin\phpize)
2.去挑你需要Fileinfo扩展的版本(这个是最新版本 wget http://pecl.php.com/get/Fileinfo-1.0.4.tgz
)
3.tar -xvf Fileinfo-1.0.4.tgz && cd Fileinfo-1.0.4 && \use\bin\phpize
4.最后按照提示添加Fileinfo扩展绝对路径到php.ini中
5.php -m 看下有没加载扩展了