Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Nov 17, 2013 3:25 pm 
Offline
Newbie

Joined: Sun Nov 17, 2013 3:11 pm
Posts: 2
I'm able to install pecl solr extension. The shared object file is created at the php extension dir.
However, if I include /usr/lib/php5/20121212/solr.so into php-fpm ini, it does not able to load the extension.

I try install phalconphp, another shared object is created at the same php extension dir.
Update the php.ini, and the phalcon extension is loaded correctly.

Not sure what could be possible went wrong?

Here are the step to install solr pecl extension
pecl install -n solr

pecl list
Installed packages, channel pecl.php.net:
=========================================
Package Version State
solr 1.0.2 stable

SO file (confirm exist)
ls -alh /usr/lib/php5/20121212/solr.so
-rw-rw-r-- 1 root root 1014K Nov 16 08:46 /usr/lib/php5/20121212/solr.so

ls -alh /usr/lib/php5/20121212/phalcon.so
-rwxr-xr-x 1 root root 3.0M Nov 16 08:20 /usr/lib/php5/20121212/phalcon.so

Here is the loaded extension
Array
(
[0] => Core
[1] => date
[2] => ereg
[3] => libxml
[4] => openssl
[5] => pcre
[6] => zlib
[7] => bcmath
[8] => bz2
[9] => calendar
[10] => ctype
[11] => dba
[12] => dom
[13] => hash
[14] => fileinfo
[15] => filter
[16] => ftp
[17] => gettext
[18] => SPL
[19] => iconv
[20] => mbstring
[21] => session
[22] => posix
[23] => Reflection
[24] => standard
[25] => shmop
[26] => SimpleXML
[27] => soap
[28] => sockets
[29] => Phar
[30] => exif
[31] => sysvmsg
[32] => sysvsem
[33] => sysvshm
[34] => tokenizer
[35] => wddx
[36] => xml
[37] => xmlreader
[38] => xmlwriter
[39] => zip
[40] => cgi-fcgi
[41] => json
[42] => PDO
[43] => apcu
[44] => curl
[45] => memcache
[46] => phalcon
[47] => mysql
[48] => mysqli
[49] => pdo_mysql
[50] => readline
[51] => mhash
[52] => apc
[53] => Zend OPcache
)

The web server is nginx, which make me wondering the pecl extension only work for apache server?
However, this does not sound right, as the solr extension should be loaded in the CLI environment too.


Top
   
PostPosted: Sun Nov 17, 2013 3:32 pm 
Offline
Newbie

Joined: Sun Nov 17, 2013 3:11 pm
Posts: 2
Sorry, for acting stupid.
The reason seems to be caused by this:

undefined symbol: curl_easy_getinfo

first glance of the issue, could be due to the curl location is set wrongly.
google on it now


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group