Currie, Larry wrote:
> Okay, I made it partway through this process. I
successfully installed the
> pear-package with sudo apt-get install pear-package,
but..
> When I ran sudo pear install yaz, I got the following:
> No releases available for package
"pear.php.net/yaz" - package pecl/yaz can
> be installed with "pecl install yaz"
> Cannot initialize 'yaz', invalid or missing package
file
> Package "yaz" is not valid
> Install failed
>
> Then I ran "sudo pecl install yaz" resulting
in the following:
> Downloading yaz-1.0.7.tgz
> 5 source files, building
> running: phpize
> sh: phpize: not found
> ERROR: 'phpize' failed
>
> Do I need to find a package called php5-dev? If so,
can you point me toward
> a site I can add to my sources.lst? (I have a Kubuntu
system running PHP
> 5.1.6)
phpize should be part pf php5-dev (or similar). And php5-dev
should be
part of Kubuntu. A "standard" sources.list should
be fine:
sudo install php5-dev
If that doesn't work, turn to an ubuntu/Linux mailing list.
/ Adam
>
> Thanks.
>
> Larry Currie
>
> Lawrence Currie
> Academy Librarian
> California Academy of Sciences
> 875 Howard St.
> San Francisco, CA 94103
> (415) 321-8038
> fax (415) 321-8633
>
>
> -----Original Message-----
> From: yazlist-bounces lists.indexdata.dk
> [mailto:yazlist-bounces lists.indexdata.dk] On
Behalf Of marc
> Sent: Thursday, December 14, 2006 11:53 PM
> To: Discussion on the YAZ Z39.50 toolkit
> Subject: Re: [Yazlist] Next Step in Debian Installation
>
> 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
>
>
_______________________________________________
Yazlist mailing list
Yazlist lists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
|