Today i have compiled mnogosearch in server.
#./configure --with-mysql --with-pgsql
(For mysql and pgsql support)
#make
#make install
Then i have recompiled my php with the following option....
#./configure --with-mysql=/usr/local/mysql/ --with-pgsql=/usr/local/pgsql/ --with-apxs2=/usr/local/apache/bin/apxs --with-mnogosearch=/usr/local/mnogosearch/ --with-zlib --with-config-file-path=/usr/local/lib/
#make
#make install
Still no problem....... I hand over the indexing job to developer. But Within few seconds he screaming with the error, while running the command he got ,
#/usr/local/mnogosearch/sbin/indexer -h
./indexer : error while loading shared libraries: libpq.so.4: can not open shared object file
I have searched this error in www.google/linux , i got 7 results ( great ! is it? ). But 3 results contains the word "mail" in its URL (For security purpose, proxy admin prvent the "mail" word in the url for preventing the mail). (Double great ! )
Among others 3 doesnt open.. (Superb! )
Finally i got open only one ...Which is related to Windooows ..(Excellent !)
Finally Google/linux drops me....
But i dont lost faith with google.. This time i searched this same error in google.com ( not linux)
I opened few links.. Yaiiiiiiiii I GOT THE SOLUTION.
SOLUTION :
1 way )
include the library path in /etc/ld.so.conf
2 way)create the link for libpq.so.4 in /lib
if u type
#ldd /usr/local/mnogosearch/sbin/indexer
u will get lot of libraries with the path, u must have libpq.so.4 with proper path.
Atlast i solved the problem and hand over the job.
Now i am waiting for other Errorrrrrrrrrrrrs..............
technorati tags:mnogosearch, linux, library, error