lundi 18 avril 2011

Installation du module Yaz


L'extension yaz.so sous Centos 5.5 (Apach2.2.3 /PHP 5.1.6):
Installation de php et Mysql:
yum install php-common php-gd php-mcrypt php-pear php-pecl-memcache
php-mhash php-mysql php-xml
Télécharger la dernière version du yaz http://ftp.indexdata.dk/pub/yaz/
Déziper le paquet:
gzip -d yaz-4.1.6.tar.gz
tar xvf yaz-4.1.6.tar
Déplacer vers  le dossier yaz-4.1.6
cd yaz-4.1.6
./configure
make
make install
cd ..
Télécharger la dernière version du yaz_php http://pecl.php.net/package/yaz/
Déziper le paquet:
gzip -d yaz-1.0.14.tgz
tar xvf yaz-1.0.14.tar
cd yaz-1.0.14
phpize
./configure
make
cd modules
Copier yaz.so dans /usr/lib/php/modules
cp yaz.so /usr/lib/php/modules
Ajouter un fichier de configuration au PHP pour qu'il prends en considération l'extension yaz, déplacer vers /etc/php.d/ et créer un fichier yaz.ini contient:
# yaz librairie
extension=yaz.so
Redémarrer apach:
service httpd restart
--
Télécharger les fichiers yaz.so et yaz.ini http://www.4shared.com/dir/eYmjJFH3/_online.html