We just got a new dedicated server, running Centos 5. I’ve just been moving some php websites which use the mnogosearch extension, and finally cracked it.
The main problem I was getting was:
/usr/bin/ld: cannot find -lmysqlclient
Here is a rough outline of what I had to do:
Install Mysql development
- yum install mysql-devel
Download & build mnogosearch
- wget http://www.mnogosearch.org/Download/mnogosearch-3.3.8.tar.gz
- edit “configure” script so that MYSQL_LIBDIR=/usr/lib64/mysql
- install.pl choosing appropriate options (I chose yes for build shared libraries)
- make
- make install
Build PHP extension
- cd mnogosearch-3.3.8/php
- follow instructions in README file here
- service httpd restart
(I tried to get it working with PostgreSQL support too, but kept getting “/usr/bin/ld: cannot find -lpq”. The fix for setting the library path in the configure file didn’t seem to work in this case, but I didn’t try too hard.)
Thanks! I was dealing with this exact issue today as well and have spent most of the afternoon fighting it. Great timing on that post ;)
wow impressed that you were able to find my post so quickly, google must be on the ball today! :)
Thank you !
that helped me a lot !
I spent a lot of time on that problem and your message saved me :-)