mnoGoSearch is still part of Debian but the DSO-Module for PHP5 (5.2.5x) is not avaliable als Package.
This HowTo roughly describes the build-process for the mnogosearch.so and the manual way to enable it.
This HowTo may result in a Module that may weaken your system or result in a unstable Version of PHP.
So please be aware, that you work at your own risk – like always.
This HowTo will not result in a Debian-Package!
http://xn.pinkhamster.net/blog/tech/mnogosearch_php_extension_on_debian_sarge.html
The important Source-Change was found here:
The mnoGoSearch-Client for PHP:
(http://www.mnogosearch.org/download.html)
cd /usr/src && \
wget http://www.mnogosearch.org/Download/php/mnogosearch-php-extension-1.96.tar.gz
tar xvfz mnogosearch-php-extension-1.96.tar.gz
Fix some lines in the mnogosearch-php-extension-file “php_mnogo.c”
search for
&(Agent->Conf->Synonyms)
and replace with
Agent->Conf->Synonym.Item
(should be on lines 920 and 1721)
The mnoGoSearch-Debian-Packages:
apt-get install mnogosearch-common mnogosearch-mysql mnogosearch-dev
The build-tree
apt-get build-dep php5
apt-get source php
apt-get source php5
Apply Debian-Patches
cd /usr/src/php5-5.2.5/ && ./debian/rules patch
Move the mnoGoSearch to the PHP-Build-Tree
mv ../1.96 ext/mnogosearch
Edit debian/rules and add “–with-mnogosearch=shared,/usr \” somewhere in the configure-rules
vi debian/rules
Edit debian/modulelist and append “mnogosearch mnoGoSearch” at the end
Let Debian do the rest (… wait …)
./debian/rules binary
If done there should be a so-file avaliable:
cp ./apache2-build/modules/mnogosearch.so /usr/lib/php5/20060613+lfs/mnogosearch.so
Then add the PHP5-INI-File here:
vi /etc/php5/conf.d/mnogosearch.ini
Content of the INI-File:
extension=mnogosearch.so
Restart your Apache and a phpinfo() should give you the info about the loaded mnoGoSearch-DSO.
This entry was posted on Monday, July 28th, 2008 at 08:50 and is filed under diverses. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.