When installing the fileinfo extension in linux, the following error message is displayed:

Source: Internet
Author: User
In linux fileinfo extension installation, the following error prompt, what is the meaning (Baidu over, cannot find the answer) [root@AY130324201613791bcaFileinfo-1.0.4] # peclinstallfileinfoWARNING: & quot; pearFileinfo & quot; isdeprecatedinfavor... when fileinfo extension is installed in linux, the following error message is displayed, indicating what it means (Baidu has passed and cannot 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" has updated its protocols, use "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 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

This sentence
Make sure that you run '/alidata/server/php/bin/phpize' in the top level source directory of the module

Reply content:

When fileinfo extension is installed in linux, the following error message is displayed, indicating what it means (Baidu has passed and cannot 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" has updated its protocols, use "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 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

This sentence
Make sure that you run '/alidata/server/php/bin/phpize' in the top level source directory of the module

Somehow your pecl program does not find the phpize path

Then try the manual installation:
1. Check the phpize path first.which phpize(Assume that \ use \ bin \ phpize)
2. Select the Fileinfo extension version you need (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. Add the absolute path of Fileinfo extension to php. ini as prompted.
5. php-m. Check whether the extension is loaded.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.