I'm trying to load the PECL solr extension. I have tried installed it using "pecl install solr" and by downloading and using "phpize/configure/make". In both cases, the extension installs with no errors, but after an apache restart (or when running php on the command line) this error message is always emitted:
PHP Warning: Unable to load dynamic library /usr/lib64/php/modules/solr.so
- /usr/lib64/php/modules/solr.so: undefined symbol:
curl_easy_getinfo in Unknown on line 0
I checked and it appears that the created solr.so object does NOT know about /usr/lib64/libcurl.so, even though I specified LDFLAGS -L/usr/lib64 (though I should not need to):
# ldd modules/solr.so
linux-vdso.so.1 => (0x00007fffd5af8000)
libc.so.6 => /lib64/libc.so.6 (0x00007fac573c0000)
/lib64/ld-linux-x86-64.so.2 (0x00000034bc000000)
I am using an out-of-the-box Fedora 15 installation. I have installed many other PECL extensions with no issue. Why is this so hard, and more importantly, how can I fix it?!?
I am using FC15, PHP 5.3.8, curl 7.21.3. Thanks in advance for any help!