Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
pharcommand.inc
directorygraphiterator.inc
clicommand.inc
invertedregexiterator.inc
directorytreeiterator.inc
phar.inc
Build complete.
Don't forget to run 'make test'.
php 的編譯時(shí)需要依賴pear package ,目前的問(wèn)題錯(cuò)誤"PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.",已經(jīng)明顯報(bào)出這個(gè)問(wèn)題。
因此編譯使用參數(shù) --without-pear 將pear 屏蔽掉編譯安裝后,再進(jìn)行安裝;同時(shí)因?yàn)閜har 屬于pear的一個(gè)庫(kù) ,所以不將phar關(guān)閉掉,同時(shí)還會(huì)報(bào)這個(gè)錯(cuò)誤,
同時(shí)需要使用 --disable-phar 編譯參數(shù).
./configure --without-pear --disable-phar
make
make install
成功編譯安裝完成后,再安裝pear
wget http://pear.php.net/go-pear.phar
/usr/local/php/bin/php go-pear.phar