3

I've running to the error of trying to install solr with the pecl extension. I've read this one:

I'm using php 5.3.3 on a centos 6 server.

And both times I get the same problem:

pecl install -n solr-beta or pecl install -n solr or pear install pecl/solr

Enable Solr (yes of course) [yes] : 
Enable Solr Debugging (Compiles solr in debug mode) [no] : 
libcURL install prefix [/usr] : 
libxml2 install prefix [/usr] : 

checking for cURL in default path... not found
configure: error: Please reinstall the libcurl distribution -
    easy.h should be in <curl-dir>/include/curl/
ERROR: `/var/tmp/solr/configure --enable-solr=yes --enable-solr-debug=no --with-curl=/usr --with-libxml-dir=/usr' failed

Is there another fix for this?

Community
  • 1
  • 1
Devin Dixon
  • 11,553
  • 24
  • 86
  • 167
  • *Another* fix? What is your fix? And have you even installed libcurl? which ssl layer is your libcurl using? – hakre Jun 09 '12 at 16:18
  • http://stackoverflow.com/questions/2332133/how-to-add-curl-support-to-php-5-in-centos – Jesvin Jose Jun 11 '12 at 08:00
  • Curl is installed. I send my email through Postmarkapp using curl. Thats not the issue. The issue appears them using different setting? I did a work around by downloading solr-php-client from the google repo and using that. But it solve the actual problem with pecl. – Devin Dixon Jun 11 '12 at 15:57
  • Which installation guide you followed for solr? Please have a fresh installation according to https://teq.kefh.in/apache-solr-installation-and-configuration/ – shafeeque aslam Apr 24 '19 at 17:14

2 Answers2

12

i had the same problem and i just had to do is:

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

And reinstall it.

Font: link

Jim Ford
  • 1,095
  • 1
  • 13
  • 21
workdreamer
  • 2,836
  • 1
  • 35
  • 37
0

The solution you have linked will only work if you actually have curl installed as a module - if you didn't do it now and try again.

c2h5oh
  • 4,492
  • 2
  • 23
  • 30