我从一个星期开始尝试此操作,但是当我尝试此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

关于php - 在Ubuntu上安装PECL id3扩展,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21103962/

10-13 01:03