1

le 3 août 2010 à 16:24:49

Publié par Axel Etcheverry

Voici comment installer l'extension sphinx pour php sur un systeme Mac OSX 1.6.x

il faut d'abord installer Sphinx via port.
shell sudo port install sphinx
Installation de la libsphinxclient
shell wget http://www.sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz
shell tar -zxvf sphinx-0.9.8.1.tar.gz
shell cd sphinx-0.9.8.1/api/libsphinxclient
shell CXXCPP=\"gcc -E\" ./configure --prefix=/opt/sphinx
shell make
shell sudo make install
il faut maintenant installer l'extension php-sphinx
sudo pecl install sphinx
à un moment il vous demande d'indiquer le préfixe d'installation de libsphinxclient ajouter /opt/sphinx voir ci-dessous
downloading sphinx-1.0.4.tgz ...
Starting to download sphinx-1.0.4.tgz (12,280 bytes)
.....done: 12,280 bytes
4 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Please provide the installation prefix of libsphinxclient [autodetect] : /opt/sphinx
une fois la compilation finie il vous suffit d'ajouter l'extension dans le php.ini
[sphinx]
extension=sphinx.so

le 1 déc. 2009 à 20:46:13

Publié par Axel Etcheverry

Mac OS X est livré sans wget. Commencez en vous inscrivant à Apple Developer Connection et télécharger XCode 3.0. Ensuite, ouvrez le terminal et tapez:

shell> ftp ftp://ftp.gnu.org/gnu/wget/wget-latest.tar.gz
shell> tar -xvzf wget-latest.tar.gz
shell> cd wget-{version}
shell> ./configure
shell> make
shell> sudo make install
Remplacez {version} avec la version de wget qui a été téléchargé (illustré lors de la décompression de l'archive).
Tags : Mac OSX

le 15 sept. 2009 à 03:03:48

Publié par Axel Etcheverry

Si vous avez Léopard (10.5), tapez dans un terminal
shell> dscacheutil -flushcache
Sinon tapez
shell> lookupd -flushcache
Tags : Mac OSX

le 13 sept. 2009 à 21:24:17

Publié par Axel Etcheverry

Dans les systemes de type Unix, lorsque je souhaite mettre à jour ma base de données de fichiers j'execute updatedb.
Sous Leopard cette commande n’existe pas.
Donc pour mettre à jour votre base de données locale vous devez exécuter :
shell> sudo /usr/libexec/locate.updatedb
Tags : Mac OSX
1