我試圖運行MacOSX上山獅的「phpize」命令,但是這是我得到phpize - 找不到config.m4。
Cannot find config.m4.
Make sure that you run '/opt/local/bin/phpize' in the top level source directory of the module
我如何解決這個問題?
我試圖運行MacOSX上山獅的「phpize」命令,但是這是我得到phpize - 找不到config.m4。
Cannot find config.m4.
Make sure that you run '/opt/local/bin/phpize' in the top level source directory of the module
我如何解決這個問題?
phpize
命令旨在運行在擴展源目錄的頂層(此源目錄應包含文件名config.m4)。
http://qiita.com/[email protected]/items/e542f39a6f1a3bc1f71e
在終端
ls config.m4
ls config*
config.w32 config0.m4
cp config0.m4 config.m4
cd /usr/local/src/php-5.3.29/ext/zlib
phpize
./configure
make clean && make && make install
nano php.ini
add extension=zlib.so
用簡單的英語,這意味着你正在運行在錯誤的目錄的命令。您需要位於包含您要安裝的擴展程序的源代碼的目錄中。例如,如果您嘗試安裝mcrypt,就像我遇到此堆棧溢出頁面時一樣,您需要在php-5.6.24/ext/mcrypt中,然後運行該命令。
第一次運行./configure
它會創建config.m4
文件,休息步驟同
擴展什麼你想編譯? – nstCactus