PHP7安装sorl扩展

分类: 服务器 > PHP

需要先扩展依赖应用软件

sudo apt-get install libcurl4-gnutls-dev
sudo apt-get install libxml2-dev

 

如果没有按照依赖软件,可能会提示对应的错误:

checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in <curl-dir>/include/curl/
configure: error: xml2-config not found. Please check your libxml2 installation.

 

安装solr扩展

wget http://pecl.php.net/get/solr-2.4.0.tgz

tar xzf solr-2.4.0.tgz

cd solr-2.4.0

phpize

./configure

make

make install

来源:原创 发布时间:2021-01-10 22:43:44