2

私は一週間からこれを試してきましたが、これを試してもまだ答えが見つかりませんでした 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をインストールしています。

4

2 に答える 2

7

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 を再起動します。

于 2015-08-19T17:42:44.987 に答える