我一直在尝试这个,现在仍然无法找到答案,当我尝试 sudo pecl install id3
这个错误发生
downloading id3-0.2.tgz ... Starting to download id3-0.2.tgz (20,693 bytes) .....done: 20,693 bytes 4 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
请帮忙 !!!我已经安装了php5-dev.
http://php.net/manual/en/id3.installation.php
您需要先使用以下命令下载id3:
pecl download id3-alpha tar -zxvf id3*.tgz vim id3.c
必须在第196行更改:function_entry id3_functions [] = {
成
zend_function_entry id3_functions [] = {
phpize ./configure make make test make install
然后将id3.so添加到php.ini文件中并重新启动apache