3.6. YAZ

YAZ is a component that allows the LOT software to use Z39.50. You need to install the YAZ library first, then the PHP/YAZ extension that allows the YAZ code to be called from PHP.

Install the YAZ library from source with:


	  cd yaz-2.0.4
	  ./configure
	  make
	  sudo make install
	

The PHP installation already comes with YAZ support, but the version of that support distributed with the current version of PHP (4.2.2-17 at the time of writing) is very out of date. It is necessary to replace this with the current version.

Get the latest PHP/YAZ extension from http://pecl.php.net/package/yaz. You'll get a file, called yaz-0.9.tgz or similar. You need to copy the source-code from this distribution into the PHP source tree and build it in the context of that tree:


	  tar tzf ../yaz-0.9.tgz
	  cp yaz-0.9/php_yaz.[ch] php-4.2.2/ext/yaz/
	  cd php-4.2.2/ext/yaz/
	  phpize
	  ./configure
	  make
	  sudo make install
	

By now yaz.so should be installed. Enable it by adding the following to php.ini.


	  extension=yaz.so
	
or by creating a file /etc/php.d/yaz.ini containing this line.

We urge you to check the output of phpinfo.php to verify that both XSLT and YAZ are enabled.