1. Instalar o curl mais recente:
# wget http://curl.haxx.se/download/curl-7.47.1.tar.gz
# tar -xvf curl-7.47.1.tar.gz
# cd curl-7.47.1/
# ./configure --prefix=/root/custom/software
# make && make install
2. Instalar o libxml mais recente:
# wget ftp://xmlsoft.org/libxml2/libxml2-2.9.3.tar.gz
# tar -xvf libxml2-2.9.3.tar.gz
# cd libxml2-2.9.3/
# ./configure --prefix=/root/custom/software
# make && make install
Observação:
This example assumes that the libxml2 and libcurl libraries were compiled from source and installed using "/root/custom/software" as the --prefix
So the absolute path to the easy.h header file will be
/root/custom/software/include/curl/easy.h
And the absolute path to the libxml/parser.h header file wil be
/root/custom/software/include/libxml2/libxml/parser.h
3. Instalar o solr mais recente:
# wget https://pecl.php.net/get/solr-2.3.0.tgz
# tar -xvf solr-2.3.0.tgz
# cd solr-2.3.0/
# phpize
# ./configure --enable-solr --with-curl=/root/custom/software --with-libxml-dir=/root/custom/software
# make && make install
4. Configurar o PHP para carregar a extensão solr.so:
# echo 'extension=solr.so' > /etc/php5/conf.d/solr.ini