Re: PEAR installations (was "Re: [PHP] Re: talking to a web page")
| From: | David T-G | Date: | Wed, 03 Dec 2003 23:34:04 +0000 |
| Subject: | Re: PEAR installations (was "Re: [PHP] Re: talking to a web page") | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171748@lists.php.net to get a copy of this message | ||
Justin, et al --
..and then Justin Patrin said...
%
% Well, technically, you should be using the PEAR installer script to
% install PEAR packages. http://pear.php.net/manual/en/installation.php
Oh. Oops :-)
%
% Barring that, you can make yourself a PEAR directory somewhere and add
% it to your include_path in your php.ini.
Well, I already have PEAR (and some modules), it appears:
bash-2.05a$ ls -lFd /usr/local/lib/php/PEAR
drwxr-xr-x 4 root wheel 512 Oct 25 2002 /usr/local/lib/php/PEAR/
So what I suppose I need to learn is now to install PEAR modules from
there.
Aha! I see /usrlocal/bin/pear :-) OK.
Server 1: FreeBSD 4.5-RELEASE, PHP 4.2.3 (I think)
bash-2.05a$ sudo pear install HTTP_Client HTTP_Request
<br /> <b>Fatal error</b>: Failed opening required 'PEAR.php'
(include_path='.:') in <b>/usr/local/bin/pear</b> on line
<b>27</b><br />
Server 2: FreeBSD 4.8-RELEASE, PHP 4.3.3rc1 (I think)
bash-2.05a$ sudo pear install HTTP_Client HTTP_Request
For this remote PEAR operation you need to install the XML_RPC package
bash-2.05a$ sudo pear install XML_RPC HTTP_Client HTTP_Request
downloading XML_RPC-1.0.4.tgz ...
Starting to download XML_RPC-1.0.4.tgz (11,991 bytes)
.....done: 11,991 bytes
bash-2.05a$ sudo pear install HTTP_Client HTTP_Request
For this remote PEAR operation you need to install the XML_RPC package
It looks like my include_path is messed up on server1; I'll look into
that. I've no idea what's up with server2, though; I DID install the
XML_RPC package
%
% Also note that you have to have all of the dependencies for those
% packages. Easiest way to go is to use the PEAR installer if you're just
% getting started.
I'd love to :-) Please forgive me; I only know from
perl -MCPAN -e shell
and away I go :-)
Thanks again & HAND
:-D
--
David T-G * There is too much animal courage in
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!