man*_*eja 1 php ubuntu id3 pecl 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/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
Run Code Online (Sandbox Code Playgroud)
请帮忙 !!!我已经安装了php5-dev.
小智 5
http://php.net/manual/en/id3.installation.php
您需要先使用以下命令下载id3:
pecl download id3-alpha
tar -zxvf id3*.tgz
vim id3.c
Run Code Online (Sandbox Code Playgroud)
必须在第196行更改:function_entry id3_functions [] = {
成
zend_function_entry id3_functions [] = {
phpize
./configure
make
make test
make install
Run Code Online (Sandbox Code Playgroud)
然后将id3.so添加到php.ini文件中并重新启动apache