Hi,
On Fri, 10 Nov 2006 16:35:19 +0100
Alexandre Gomes <clique_ici hotmail.com> wrote:
> I am trying to install the Yaz extension but I do not
arrive there.
I have currently setup everything in Gentoo. Note that the
ebuilds are
a bit outdated. In order to install current versions, just
create a
Portage (Gentoo's package management) Overlay.
e.g.:
$ mkdir -p /usr/local/portage/dev-libs/yaz
$ echo 'PORTDIR_OVERLAY="/usr/local/portage"'
>> /etc/make.conf
Then copy the old ebuild and rename it so its name resembles
the
current version and create a digest:
$ cp /usr/portage/dev-libs/yaz/yaz-2.1.8-r1.ebuild
/usr/local/portage/dev-libs/yaz/yaz-2.1.38.ebuild
$ ebuild /usr/local/portage/dev-libs/yaz/yaz-2.1.38.ebuild
digest
Do the same for the pecl-yaz ebuild (I think 1.0.7 is the
current
version). Renaming is sufficient. Maybe I should invest some
time and
request a version bump in Gentoo's Bugzilla.
> I installed both well :
>
> * dev-libs/yaz Latest version available: 2.1.8-r1
Latest version installed: 2.1.8-r1 Size of
downloaded files: 4,956 kB Homepage: http://www.indexdata.dk/y
az Description: C/C++ programmer's toolkit
supporting the development of Z39.50v3 clients and servers
License: YAZ
>
> * dev-php5/pecl-yaz Latest version available:
1.0.4 Latest version installed: 1.0.4 Size of
downloaded files: 15 kB Homepage: http://pecl.php.net/yaz
Description: This extension implements a Z39.50 client
for PHP using the YAZ toolkit. License: PHP
>
> But when I makes a phpinfo () the extension is not
posted.
>
> I also added in the php.ini the line: extension=yaz.so
To _what_ php.ini: Gentoo creates one for each SAPI, i.e.
apache(2),
cli, cgi... Check the phpinfo() output, it mentiones the
right php.ini.
You can also load the extension at request (I prefer that,
since most
of my pages do not use yaz anyway) by using PHP's dl()
function. I.e.
insert something like this in your code:
<?php
if(!extension_loaded('yaz') && !dl('yaz.so'))
trigger_error('Arrrr. Cannot load yaz.so. Arrrr.');
?>
-hwh
BTW: I can provide an ebuild for Zebra, if anyone's
interested.
_______________________________________________
Yazlist mailing list
Yazlist lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
|