Hallo zusammen,
auf einem debian9 System soll solr für die PHP 7.2 7.3 7.4 Versionen bereitgestellt werden.
Folgende PHP LC Pakete sind installiert:
php-7.2-opt php-7.2-opt-apcu php-7.2-opt-dev
php-7.2-opt-igbinary php-7.2-opt-imagick php-7.2-opt-redis
php-7.3-opt php-7.3-opt-apcu php-7.3-opt-dev
php-7.3-opt-igbinary php-7.3-opt-imagick php-7.3-opt-redis
php-7.4-opt php-7.4-opt-apcu php-7.4-opt-dev
php-7.4-opt-igbinary php-7.4-opt-imagick php-7.4-opt-redis
Für 7.3 und 7.4 klappte es wie folgt ohne Probleme:
/opt/php-7.3/bin/pear channel-update pecl.php.net
/opt/php-7.3/bin/pear install pecl.php.net/solr
echo "extension=solr.so" > /opt/php-7.3/etc/conf.d/solr.ini
/opt/php-7.4/bin/pear channel-update pecl.php.net
/opt/php-7.4/bin/pear install pecl.php.net/solr
echo "extension=solr.so" > /opt/php-7.4/etc/conf.d/solr.ini
Nur für die 7.2 kommt es beim "/opt/php-7.2/bin/pear install pecl.php.net/solr"
beim make am Ende zu folgendem Fehler:
running: make
/bin/bash /tmp/pear/temp/pear-build-rooti41jWS/solr-2.5.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/solr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rooti41jWS/solr-2.5.0/include -I/tmp/pear/temp/pear-build-rooti41jWS/solr-2.5.0/main -I/tmp/pear/temp/solr -I/opt/php-7.2/include/php -I/opt/php-7.2/include/php/main -I/opt/php-7.2/include/php/TSRM -I/opt/php-7.2/include/php/Zend -I/opt/php-7.2/include/php/ext -I/opt/php-7.2/include/php/ext/date/lib -I/usr/local/include -I/usr/include/libxml2 -I/opt/php-7.2/include/php -I/opt/php-7.2/include/php/main -I/opt/php-7.2/include/php/TSRM -I/opt/php-7.2/include/php/Zend -I/opt/php-7.2/include/php/ext -I/opt/php-7.2/include/php/ext/date/lib -I/usr/local/include -I/usr/include/libxml2 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/solr/src/php7/php_solr.c -o src/php7/php_solr.lo
mkdir src/php7/.libs
cc -I. -I/tmp/pear/temp/solr -DPHP_ATOM_INC -I/tmp/pear/temp/pear-build-rooti41jWS/solr-2.5.0/include -I/tmp/pear/temp/pear-build-rooti41jWS/solr-2.5.0/main -I/tmp/pear/temp/solr -I/opt/php-7.2/include/php -I/opt/php-7.2/include/php/main -I/opt/php-7.2/include/php/TSRM -I/opt/php-7.2/include/php/Zend -I/opt/php-7.2/include/php/ext -I/opt/php-7.2/include/php/ext/date/lib -I/usr/local/include -I/usr/include/libxml2 -I/opt/php-7.2/include/php -I/opt/php-7.2/include/php/main -I/opt/php-7.2/include/php/TSRM -I/opt/php-7.2/include/php/Zend -I/opt/php-7.2/include/php/ext -I/opt/php-7.2/include/php/ext/date/lib -I/usr/local/include -I/usr/include/libxml2 -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/solr/src/php7/php_solr.c -fPIC -DPIC -o src/php7/.libs/php_solr.o
In file included from /tmp/pear/temp/solr/src/php7/php_solr.h:46:0,
from /tmp/pear/temp/solr/src/php7/php_solr.c:21:
/opt/php-7.2/include/php/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory
#include "pcre.h"
^
compilation terminated.
Makefile:194: recipe for target 'src/php7/php_solr.lo' failed
make: *** [src/php7/php_solr.lo] Error 1
ERROR: `make' failed
Fehlt mir eine Abhängigkeit?
Danke!
Gruß
Thomas