【问题标题】:How to add Solr PECL extension into lampp (xampp) stack如何将 Solr PECL 扩展添加到lampp(xampp)堆栈中
【发布时间】:2011-04-02 21:11:09
【问题描述】:

是否可以将 PECL 扩展添加到 Lampp 堆栈中?如果可以,怎么做?

我对@9​​87654321@ 扩展特别感兴趣。

编辑:安装此扩展时使用:

/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

据我了解,这应该意味着它只需要找到我在安装中指定的正确 curl 位置,当它询问为“opt/lampp/bin”时

这是否意味着如果不使用不同的 curl 包重新编译 php 就无法完成?这甚至可以通过 Lampp 堆栈实现,还是我现在必须自己构建?

有什么想法吗?

【问题讨论】:

    标签: php ubuntu xampp pecl lampp


    【解决方案1】:

    PHP: Installation of PECL extensions

    另外看看SOLR扩展模块的需求:http://docs.php.net/solr.requirements

    【讨论】:

    • 所以同样的技术适用于一个 Lampp 堆栈,就像它适用于一个单独构建的堆栈?
    • 是的,在这两种情况下都是:要么找到兼容的二进制文件 .so/.dll,要么自己编译扩展模块。 phpinfo() 可以告诉您哪些 ./configure 开关已用于构建 php-core。
    • @user103219 我遇到了同样的错误。我不明白你们是如何解决这个问题的。你能更容易解释吗?谢谢
    猜你喜欢
    • 2014-11-25
    • 2017-09-18
    • 1970-01-01
    • 2015-08-11
    • 1970-01-01
    • 2020-09-21
    • 2018-04-29
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多