Suite à quelques extensions php qui ne sont pas disponibles dans le portage Gentoo j'ai dû créer mes propres ebuild.
Suite à mon article sur l'utilisation de oAuth pour l'API Twitter j'ai dû installer l'extension pecl oAuth sur mon serveur Gentoo, mais le package n'existe pas dans le portage, j'ai donc crée mon propre ebuild.
Suite à la réinstallation de mon serveur sous gentoo, j'ai été confronté à un problème d'installation de l'extension pecl php-sphinx.
je vous livre la solution qui a marché pour moi.
ensuite il faut activer l'extension dans la config php.
créer un fichier sphinx.ini et ajouter cette ligne :
je vous livre la solution qui a marché pour moi.
Installation de libsphinxclient
$ wget http://www.sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz $ tar -zxvf sphinx-0.9.8.1.tar.gz $ cd sphinx-0.9.8.1/api/libsphinxclient $ CXXCPP=\"gcc -E\" ./configure $ make $ sudo make install
Installation de php-sphinx
$ wget http://pecl.php.net/get/sphinx-1.0.4.tgz $ tar -xvzf sphinx-1.0.4.tgz $ cd sphinx-1.0.4/ $ phpize $ aclocal $ libtoolize --force $ autoheader $ autoconf $ ./configure $ make $ sudo make install
ensuite il faut activer l'extension dans la config php.
créer un fichier sphinx.ini et ajouter cette ligne :
extension=sphinx.socréer le lien symbolique
$ sudo ln -s /etc/php/apache2-php5/ext/sphinx.ini /etc/php/apache2-php5/ext-active/sphinx.ini





