Installing Solr in a XAMPP server in a LINUX server

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Installing Solr in a XAMPP server in a LINUX server

Postby woho87 » 12. June 2011 14:50

I try to install Solr PHP extension to my webserver. I already have an XAMPP server and I'm using PECL to install solr

$ cd /opt/lampp/bin

$ sudo ./pecl install solr-1.0.1

But I got the following error:

checking libxml2 install dir... /usr/lib
checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.
ERROR: `/tmp/pear/temp/solr/configure --enable-solr=yes --enable-solr-debug=no --with-curl=
/usr --with-libxml-dir=/usr/lib' failed
During the installation it prompts me to input a path:

libxml2 install prefix [/usr] :

I have tried with enter and the /usr/lib

What shall I input there to not get an error? Or how shall I install to not get an error?

UPDATE:

I have now installed libxml2 through $ sudo yum install libxml2-devel

But I got some new errors when I try to install using PECL:

/tmp/pear/temp/solr/php_solr.c:906: error: expected declaration specifiers before 'ZEND_GET
_MODULE'
/tmp/pear/temp/solr/php_solr.c:1075: error: expected declaration specifiers before 'PHP_RIN
IT_FUNCTION'
/tmp/pear/temp/solr/php_solr.c:1130: error: expected declaration specifiers before 'PHP_RSH
UTDOWN_FUNCTION'
/tmp/pear/temp/solr/php_solr.c:1145: error: expected declaration specifiers before 'PHP_MSH
UTDOWN_FUNCTION'
/tmp/pear/temp/solr/php_solr.c:1152: error: expected declaration specifiers before 'PHP_MIN
FO_FUNCTION'
/tmp/pear/temp/solr/php_solr.h:509: error: declaration for parameter 'solr_curl_debug_callb
ack' but no such parameter
/tmp/pear/temp/solr/php_solr.h:508: error: declaration for parameter 'solr_curl_write_heade
r' but no such parameter
/tmp/pear/temp/solr/php_solr.h:507: error: declaration for parameter 'solr_curl_write' but
no such parameter
/tmp/pear/temp/solr/solr_types.h:388: error: declaration for parameter 'client_count' but n
o such parameter
/tmp/pear/temp/solr/solr_types.h:386: error: declaration for parameter 'document_count' but
no such parameter
/tmp/pear/temp/solr/solr_types.h:384: error: declaration for parameter 'request_count' but
no such parameter
/tmp/pear/temp/solr/php_solr.c:1185: error: expected '{' at end of input
make: *** [php_solr.lo] Error 1
ERROR: `make' failed
woho87
 
Posts: 1
Joined: 12. June 2011 14:43

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 3 guests