微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在Ubuntu上安装PECL id3扩展

我一直试图从一个星期,现在仍然无法find这个答案当我尝试这个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

这是一个已知的问题,请参阅https://bugs.PHP.net/bug.PHP?id=58650

试过,测试,确认解决方法

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

喜欢:

extension=id3.so

到Dynamic Extensions部分。

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

service apache2 restart

通过检查apache错误日志文件确保一切顺利,没有错误

tail -25 /var/log/apache2/error.log

成功应该有一个类似的结果:

[notice] caught SIGTERM,shutting down [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch configured -- resuming normal operations

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐