2016-04-20 13 views
1

私は(15.10)のUbuntuで拡張子のFileInfo PHPをインストールしようとエラーが発生していますPHP拡張(15.10)

sudo 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 
running: phpize 
Cannot find config.m4. 
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module 

If the command failed with 'phpize: not found' then you need to install php5-dev packageYou can do it by running 'apt-get install php5-dev' as a root userERROR: `phpize' failed 

、その後、私はこれを試してみましたコマンド:

sudo apt-get install php5-dev 

出力:

Reading package lists... Done 
Building dependency tree  
Reading state information... Done 
php5-dev is already the newest version. 
The following packages were automatically installed and are no longer required: 
    linux-headers-4.2.0-16 linux-headers-4.2.0-16-generic 
    linux-image-4.2.0-16-generic linux-image-extra-4.2.0-16-generic 
    linux-signed-image-4.2.0-16-generic 
Use 'apt-get autoremove' to remove them. 
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded. 

私はどのようにphp fileinfo拡張子をインストールできますか? この拡張機能をどのように有効にできますか?

答えて

1

この拡張機能は、デフォルトでPHP 5.3.0以降で有効になっています。

以前は、fileinfoはPECL拡張であったが、もはやそこでは維持されていなかった。

参考:私はこの拡張機能を有効にするにはどうすればよい http://www.php.net/manual/en/fileinfo.installation.php

+0

? Ubuntuの –

+0

はデフォルトで有効になっています。 phpinfoが有効になっているか確認してください。あなたはphp.iniで拡張機能を設定することができます – Fiil

+0

phpinfoでチェックしてあります。そこにあります:) php.iniでfileinfoをどのように有効にできますか?php.iniで 'fileinfo'が見つかりました。 –