1

le 10 sept. 2010 à 15:51:40

Publié par Axel Etcheverry

Suite à quelques extensions php qui ne sont pas disponibles dans le portage Gentoo j'ai dû créer mes propres ebuild.

le 10 sept. 2010 à 11:51:12

Publié par Axel Etcheverry

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.

Tags : PHP, Gentoo, Oauth, PECL

le 24 août 2010 à 13:11:30

Publié par Axel Etcheverry

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.

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.so
créer le lien symbolique
$ sudo ln -s /etc/php/apache2-php5/ext/sphinx.ini /etc/php/apache2-php5/ext-active/sphinx.ini
1