deepin20.1 + 宝塔php7.3 安装solr拓展始终不成功,报 错easy.h should be in /include/curl/
1.安装依赖
sudo apt-get install libcurl4-openssl-dev
udo apt-get install libcurl4-openssl-dev
2.安装solr拓展
sudo /www/server/php/73/bin/pecl install solr
3.安装拓展报错:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading solr-2.5.1.tgz ...
Starting to download solr-2.5.1.tgz (619,983 bytes)
.............................................................................................................................done: 619,983 bytes
36 source files, building
running: phpize
Configuring for:
PHP Api Version: 20180731
Zend Module Api No: 20180731
Zend Extension Api No: 320180731
Enable Solr Debugging (Compiles solr in debug mode) [no] :
libcURL install prefix [/usr] :
libxml2 install prefix [/usr] :
building in /tmp/pear/temp/pear-build-root7OxPO5/solr-2.5.1
running: /tmp/pear/temp/solr/configure --with-php-config=/www/server/php/73/bin/php-config --enable-solr-debug=no --with-curl=/usr --with-libxml-dir=/usr
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /www/server/php/73
checking for PHP includes... -I/www/server/php/73/include/php -I/www/server/php/73/include/php/main -I/www/server/php/73/include/php/TSRM -I/www/server/php/73/include/php/Zend -I/www/server/php/73/include/php/ext -I/www/server/php/73/include/php/ext/date/lib
checking for PHP extension directory... /www/server/php/73/lib/php/extensions/no-debug-non-zts-20180731
checking for PHP installed headers prefix... /www/server/php/73/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 1.1.1 (ok)
checking for gawk... gawk
checking for cURL support... yes, shared
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
ERROR: `/tmp/pear/temp/solr/configure --with-php-config=/www/server/php/73/bin/php-config --enable-solr-debug=no --with-curl=/usr --with-libxml-dir=/usr' failed
网上攻略都试过了,你说的这个依赖我也按过,依然报同样错误,不知哪位大神亲测解决下
什么是 宝塔php7.3, 怎么安装的?
Featured Collection
Popular Ranking
Popular Events
deepin20.1 + 宝塔php7.3 安装solr拓展始终不成功,报 错easy.h should be in /include/curl/
1.安装依赖
sudo apt-get install libcurl4-openssl-dev
udo apt-get install libcurl4-openssl-dev
2.安装solr拓展
sudo /www/server/php/73/bin/pecl install solr
3.安装拓展报错:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading solr-2.5.1.tgz ...
Starting to download solr-2.5.1.tgz (619,983 bytes)
.............................................................................................................................done: 619,983 bytes
36 source files, building
running: phpize
Configuring for:
PHP Api Version: 20180731
Zend Module Api No: 20180731
Zend Extension Api No: 320180731
Enable Solr Debugging (Compiles solr in debug mode) [no] :
libcURL install prefix [/usr] :
libxml2 install prefix [/usr] :
building in /tmp/pear/temp/pear-build-root7OxPO5/solr-2.5.1
running: /tmp/pear/temp/solr/configure --with-php-config=/www/server/php/73/bin/php-config --enable-solr-debug=no --with-curl=/usr --with-libxml-dir=/usr
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /www/server/php/73
checking for PHP includes... -I/www/server/php/73/include/php -I/www/server/php/73/include/php/main -I/www/server/php/73/include/php/TSRM -I/www/server/php/73/include/php/Zend -I/www/server/php/73/include/php/ext -I/www/server/php/73/include/php/ext/date/lib
checking for PHP extension directory... /www/server/php/73/lib/php/extensions/no-debug-non-zts-20180731
checking for PHP installed headers prefix... /www/server/php/73/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... 1.1.1 (ok)
checking for gawk... gawk
checking for cURL support... yes, shared
checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
ERROR: `/tmp/pear/temp/solr/configure --with-php-config=/www/server/php/73/bin/php-config --enable-solr-debug=no --with-curl=/usr --with-libxml-dir=/usr' failed