0
好吧,我再次嘗試在MAC OS X YOSEtime 10.10.2的MAMP上安裝id3 php,根據手冊從this question。 我用pear update-channels
它更新使用MAMP在mac os上的phpize問題
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文件獲取標籤?