本文介绍了在 Ubuntu 上安装 PECL id3 扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从一个星期开始一直在尝试这个,现在当我尝试这个 sudo pecl install id3
这个错误发生时仍然找不到答案
I have been trying this from a week now still couldnt find an answer for this when i try this sudo pecl install id3
this error happens
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.
please help !!! I have already installed php5-dev.
推荐答案
http://php.net/manual/en/id3.installation.php
您需要先使用以下方法下载 id3:
You will need to download id3 first using:
pecl download id3-alpha
tar -zxvf id3*.tgz
vim id3.c
必须在第 196 行更改:function_entry id3_functions[] = {
Have to change in line 196:function_entry id3_functions[ ] = {
进入
zend_function_entry id3_functions[ ] = {
zend_function_entry id3_functions[ ] = {
phpize
./configure
make
make test
make install
然后将 id3.so 添加到您的 php.ini 文件中并重启apache
Then add the id3.so into your php.ini fileand restart apache
这篇关于在 Ubuntu 上安装 PECL id3 扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!