Currie, Larry wrote:
> I just successfully ran the sudo apt-get install
libyaz-dev command for
> our Debian Linux installation. I then attempted to run
the sudo pear
> install yaz command and got the message “pear: command
not found”. It
> isn’t clear to me why I would need to run this second
command – YAZ is
> already installed on the server. I don’t know what my
next step should
> be. I restarted apache and looked at phpinfo.php and
did not find any
> evidence that YAZ has been integrated into PHP5. What
am I looking for
> in phpinfo.php that will tell me I have been
successful? I ran my PHP
> script that uses YAZ and received the error message
“Call to undefined
> function yaz_connect() in …”. Do I need to install
PEAR to continue?
>
>
Yes, definitely you need an utility. YAZ is a C-lib, and PHP
does not
know anything about it. To make a PHP-loadable module, you
need to
compile the PHP wrappers around YAZ into PHP-YAZ (and load
them, of course).
PEAR/PECL is the tool fro the job.
http://pecl.php.net/
Please find related background info at
http://pecl.php.net/p
ackage/yaz
On a Debian GNU/Linux system the following installs YAZ and
PECL YAZ:
sudo apt-get install libyaz-dev
sudo apt-get install pear-package
sudo pear install yaz
If you are using YAZ as a shared extension, add (or
uncomment) the
following line in php.ini on Unix:
extension=yaz.so
PEAR is for PHP-only extentions ..
http://pear.php.net/
http://pear.php.net/ma
nual/en/
>
> Thanks.
>
>
>
> Larry Currie
>
>
>
> Currie, Larry wrote:
>
>> I am trying to use the following instructions for
installing YAZ on a
>
>> Debian Linux system:
>
>>
>
>>
>
>>
>
>> For PHP 5, the YAZ extension is in PECL <http://pecl.php.net
> <http://pecl.php.net/>
> and is
>
>> installed as a shared object/dll. If you have pear
installed the easiest
>
>> way to download, configure and install the YAZ
extension is by using the
>
>> *pear* command.
>
>>
>
>> *Example 2. Installation of PECL YAZ on GNU/Debian
Linux*
>
>>
>
>> On a Debian GNU/Linux system the following
installs YAZ and PECL YAZ:
>
>>
>
>> sudo apt-get install libyaz-dev
>
>>
>
>> sudo pear install yaz
>
>>
>
>>
>
>>
>
>> I already have the YAZ client installed in my
usr/local/bin directory.
>
>> (I believe it is version 2.2.28. Is there a way
to check this?)
>
>>
>
>
>
> The current version is
>
> 2.1.40-1
>
>
>
> check with:
>
> apt-cache policy yaz
>
>
>
>>
>
>> I have also just added the following two lines in
/etc/apt/sources.list
>
>> and successfully ran the commands beginning wget
and sudo:
>
>>
>
>> deb http://ftp.indexdata.d
k/debian sarge main
>
>>
>
>> deb-src http://ftp.indexdata.d
k/debian sarge main
>
>>
>
>>
>
>>
>
>> These packages are signed with a key you can
install as follows:
>
>>
>
>> wget http://f
tp.indexdata.dk/debian/indexdata.asc
>
>>
>
>> sudo apt-key add indexdata.asc
>
>>
>
>>
>
>>
>
>> What steps should I take next? (At this point,
package libyaz-dev still
>
>> could not be found.)
>
>>
>
>
>
>
>
> To get Index Data's Debian repository in your
/etc/apt/sources list
>
> see http:
//ftp.indexdata.dk/pub/zebra/debian/README
>
>
>
> and do a
>
>
>
> sudo apt-get update (did you forget
this one??)
>
> apt-cache policy libyaz-dev (should show
libyaz-dev)
>
> sudo apt-get install libyaz-dev yaz
>
>
>
> The key stuff is just to convince apt-get that the
package is trusted,
>
> but you can live without.
>
>
>
> Marc Cromme, Index Data
>
>
>
>
>
> *Lawrence** Currie*
>
> Academy Librarian
>
> California Academy of Sciences
>
> 875 Howard St.
>
> San Francisco, CA 94103
>
> (415) 321-8038
>
> fax (415) 321-8633
>
>
>
>
>
------------------------------------------------------------
------------
>
> _______________________________________________
> Yazlist mailing list
> Yazlist lists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
--
Marc Cromme
M.Sc and Ph.D in Mathematical Modelling and Computation
Senior Developer, Project Manager
Index Data Aps
Købmagergade 43, 2
1150 Copenhagen K.
Denmark
tel: +45 3341 0100
fax: +45 3341 0101
http://www.indexdata.com
INDEX DATA Means Business
for Open Source and Open Standards
_______________________________________________
Yazlist mailing list
Yazlist lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
|