使用pecl install -n solr
給 No releases available for package "pecl.php.net/solr" install failed
無法安裝PHP Solr的擴展
也試過pear install pecl/solr
可以得到相同的輸出: No releases available for package "pecl.php.net/solr" install failed
我使用的是Mac和php56。輸出的pecl -V
PEAR Version: 1.9.4 PHP Version: 5.6.25 Zend Engine Version: 2.6.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
的另一個重要信息是,pear
和pecl
都不在我的系統中可用,所以我用
sudo php /usr/lib/php/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin
安裝這些更新
試過sudo pecl install -n solr
,現在它似乎走一步
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rerun this script. ERROR: phpize failed