If you want to add the Solr extension to your exisiting PHP install, you need to make sure you use the same API to build the extension as was used to build PHP or you'll get errors like:
PHP Warning: PHP Startup: solr: Unable to initialize module\nModule compiled with module API=20060613\nPHP compiled with module API=20090626\nThese options need to match\n in Unknown on line 0
To avoid this, use your existing phpize and php-config when compiling the extension (change the '/usr/local/php5/' below to whatever your existing path is.)
/usr/local/php5/bin/phpize
./configure --with-php-config=/usr/local/php5/bin/php-config
make
make test
make install
Instalación
Información para la instalación de esta extensión PECL puede ser encontrada en el capítulo del manual titulado Instalación de extensiones PECL. Información adicional tal como nuevos lanzamientos, descargas, archivos fuente, mantenimiento de información, y un CHANGELOG, se encontrará aquí: » http://pecl.php.net/package/solr.
No hay una DLL disponible para esta extensión PECL actualmente. Vea también la sección Compilando en Windows.
Note:
El módulo solr se puede compilar en modo depuración pasando la bandera --enable-solr-debug a la configuración
Cuando se construya manualmente, asegúrese de incluir soporta para curl y libxml dentro de la construcción.
regan
10-Dec-2009 11:19
