When installing the FileInfo extension under Linux, what is the meaning of the following error message (hundred spent, can not find the answer)
[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.net" have updated its protocols with "Pecl channel-update pear.php.net" 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 has a suffix/bin/php, but config variable php_suffix does not ma Tch
Running:phpize
Cannot find CONFIG.M4.
Make sure this you run '/alidata/server/php/bin/phpize ' in the top level source directory of the module
ERROR: ' Phpize ' failed
This is the main sentence.
Make sure this you run '/alidata/server/php/bin/phpize ' in the top level source directory of the module
Reply content:
When installing the FileInfo extension under Linux, what is the meaning of the following error message (hundred spent, can not find the answer)
[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.net" have updated its protocols with "Pecl channel-update pear.php.net" 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 has a suffix/bin/php, but config variable php_suffix does not ma Tch
Running:phpize
Cannot find CONFIG.M4.
Make sure this you run '/alidata/server/php/bin/phpize ' in the top level source directory of the module
ERROR: ' Phpize ' failed
This is the main sentence.
Make sure this you run '/alidata/server/php/bin/phpize ' in the top level source directory of the module
I don't know why you pecl program didn't find phpize path
Then try the manual installation:
1. First look at where the phpize path is which phpize
(assuming in \use\bin\phpize)
2. To pick the version you need FileInfo extension (this is the latest version wget http://pecl.php.net/get/Fileinfo-1.0.4.tgz
)
3.TAR-XVF fileinfo-1.0.4.tgz && cd Fileinfo-1.0.4 && \use\bin\phpize
4. Finally follow the prompts to add the FileInfo extension absolute path to php.ini
5.php-m See if there's a load extension.