Php 在Ubuntu上安装PECL id3扩展

Php 在Ubuntu上安装PECL id3扩展,php,ubuntu,pecl,id3,id3v2,Php,Ubuntu,Pecl,Id3,Id3v2,我已经试了一个星期了,但当我尝试这个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/b

我已经试了一个星期了,但当我尝试这个
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。

这是一个已知问题,请参阅

经过尝试、测试和确认的解决方法:

pear update-channels
pecl install --force id3
cd /build/buildd/php*/pear-build-download
tar -zxvf id3*.tgz
cd id3*/
phpize
./configure
make
make test
make install
id3.so
扩展名添加到
php.ini
文件中:

nano /etc/php5/apache2/php.ini
比如:

转到
动态扩展
部分

然后,重新启动apache,以便加载新配置:

service apache2 restart
通过检查apache错误日志文件,确保一切正常,没有错误:

tail -25 /var/log/apache2/error.log
成功应该有类似的结果:

您需要先使用以下软件下载id3:

pecl download id3-alpha
tar -zxvf id3*.tgz
vim id3.c 
必须在第196行中更改: 函数输入id3函数[]={

phpize
./configure
make
make test
make install
进入

zend_函数项id3_函数[]={

phpize
./configure
make
make test
make install
然后将id3.so添加到php.ini文件中
重新启动apache

你是否尝试运行
phpize
查看它是否已安装以及是否在你的
路径中
?很抱歉,我是ubuntu新手,我刚从windows换了个位置,只是为了能使用这个扩展,我不知道我应该检查它,我现在检查了,同样的错误找不到config.m4我不确定,但谷歌搜索会发现b吗e一个好的开始。@JonathonReinhart谢谢您,先生,按照这些步骤,成功地生成了id3.so,并将
extension=id3.so
添加到php.ini中,但仍然不能使用id3函数:/error is
调用未定义函数
这不起作用。pecl命令立即失败,config.m4错误。id3-alpha不起作用它甚至没有开始构建。它有很多编译器错误,比如缺少分号,传递给函数的方法数量错误,等等。。。
phpize
./configure
make
make test
make install