What is the meaning of the following error message when installing the FileInfo extension under Linux?

Source: Internet
Author: User
Tags pear
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.

  • 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.