如何将 Solr PECL 扩展添加到 lampp (xampp) 堆栈中
是否可以将 PECL 扩展添加到 lampp 堆栈中?如果可以的话,该怎么办呢?
我对 http://www.php.net/manual/en 特别感兴趣/book.solr.php 扩展名。
编辑:安装此扩展时使用:
/opt/lampp/bin/pecl install -f solr
除了最后之外,一切都按预期进行:
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 <curl-dir>/include/curl/
ERROR: `/tmp/pear/temp/solr/configure --enable-solr=yes --enable-solr-debug=no --with-curl=/opt/lampp/bin --with-libxml-dir=/usr' failed
根据我的理解,这应该意味着它只需要找到我在安装时指定的正确的卷曲位置,当它询问为“opt/”时lampp/bin'
这是否意味着如果不使用不同的curl包重新编译php就无法完成?这是否可以通过 lampp 堆栈实现,还是我现在必须构建自己的堆栈?
有什么想法吗?
Is it possible to add PECL extensions into a lampp stack? If so, how can it be done?
I am specifically interested in http://www.php.net/manual/en/book.solr.php extension.
EDIT: when installing this extension using:
/opt/lampp/bin/pecl install -f solr
everything seams to go as it should except at the end:
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 <curl-dir>/include/curl/
ERROR: `/tmp/pear/temp/solr/configure --enable-solr=yes --enable-solr-debug=no --with-curl=/opt/lampp/bin --with-libxml-dir=/usr' failed
From what I understand this should mean that it simply needs to find the correct curl location which I specify in the install when it asks as 'opt/lampp/bin'
Does this mean that it can't be done without recompiling php using a different curl package? Is this even possible with a lampp stack or do I have to now build my own?
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅 PHP:安装 PECL 扩展。
另外看看SOLR扩展模块的要求: http://docs.php.net/solr .要求
see PHP: Installation of PECL extensions.
Also take a look at the requirements of the SOLR extension module: http://docs.php.net/solr.requirements