使用MAMP在mac os上进行phpize问题

时间:2015-04-04 18:06:29

标签: php macos tags mp3 id3

好吧,我再次尝试根据this question的手册在MAC OS X YOSEtime 10.10.2上的MAMP上安装id3 php。 我用pear update-channels更新了

Updating channel "doc.php.net"
Channel "doc.php.net" is up to date

其他人都是最新的。

pecl install --force id3

当然给了我config.mp4 not found 我找到了目录:

/private/tmp/pear/cache/

id3-0.2.tgz被保存在那里。

所以我在那里提取了它。将目录更改为id3-0.2并在那里运行phpize。它说:

grep: /Applications/MAMP/bin/php/php5.6.2/include/php/main/php.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.6.2/include/php/Zend/zend_modules.h: No such file or directory
grep: /Applications/MAMP/bin/php/php5.6.2/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:        
Zend Module Api No:     
Zend Extension Api No:

因此没有必要使用下一个命令。也许我可以以某种方式配置phpize以显示正确的文件路径? 或者你可以建议其他方式从php中获取mp3文件的标签吗?

1 个答案:

答案 0 :(得分:0)

找到更好的解决方案http://www.getid3.org/ 我刚刚下载了一个存档,将其解压缩到网站目录,并根据Readme中的测试(访问/demos/demo.browse.php)将mp3文件放到目录中,我可以看到它的标签。精美的图书馆。

相关问题