PECL solr not loading due to undefined symbol: curl_easy_getinfo

我与影子孤独终老i 提交于 2019-12-02 07:24:06

I couldn't figure out what the problem was either, as I was able to compile via pecl (phpize/configure/make/make install) on Fedora 16 just fine.

First make sure you got libc compat installed:

compat-glibc.i386 : Compatibility C library
compat-glibc.x86_64 : Compatibility C library
compat-glibc-headers.x86_64 : Header files for development using standard C

Once I installed the packages above, I configured/make/make install and it worked fine.

My solution was: Edit: /etc/php.d/json.ini and add extension=solr.so this causes loading solr extension after json extension, avoiding json library missing.

Ej json.ini:

; Enable json extension module extension=json.so extension=solr.so

That means that it needs curl Install the dependencies like the following:

sudo yum install libxml2-devel curl curl-devel php-curl

I faced a similar problem and found a solution to work.

To fix this , just create a file called /etc/php.d/solr.so and add its content as :

;Enable the solr php extension
extension=solr.so

and then just reload your web server. It should work now.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!