Re: Basic install problem
| From: | Geranium | Date: | Mon, 26 Aug 2002 15:10:38 +0000 |
| Subject: | Re: Basic install problem | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2193@lists.php.net to get a copy of this message | ||
In article <20020825194325.25eeb925.paj@pearfr.org>, Pierre-Alain Joye
<paj@pearfr.org> wrote:
> pear list // will list the intalled package
>
> pear install DB_Pager // will fetch the DB_Pager packager and install it
>
> pear upgrade DB_Pager // will remove DB_Page
>
> After you have correctly installed the needed packages, you can follow the
> documentions/samples available in the packages or on pear.php.net documentation section, or ask
> it here:)
Well, this is rather my problem. I have installed pear and it seems to
be working just fine for all its own functions like list, install etc.
e.g.:
$pear list
INSTALLED PACKAGES:
===================
+----------------+----------+--------+
| PACKAGE | VERSION | STATE |
| Archive_Tar | 0.9 | stable |
| Console_Getopt | 0.11 | beta |
| DB | 1.3 | stable |
| HTTP | 1.2 | stable |
| Mail | 1.0.1 | stable |
| Net_SMTP | 1.0 | stable |
| Net_Socket | 1.0.1 | stable |
| PEAR | 0.91-dev | beta |
| XML_Parser | 1.0 | stable |
| XML_RPC | 1.0.3 | stable |
+----------------+----------+--------+
They really are installed:
$pear install mail
downloading Mail-1.0.1.tgz ...
...done: 11,825 bytes
Mail already installed
But I still can't use any of them.
What more do I have to do? I can't get _any_ pear examples to work.
PHP doesn't seem to have any idea that pear exists. I can't see how it
is supposed to know - I don't know where pear has installed its php
files, but they're not in my include path. How does PHP know where to
find the pear files? None of the pear code samples have any kind of
include or require commands (I found one that had a
require("pear/db.php"), but that still gave me a class not found
error).
I can't see anything in the docs to cover this - it makes out that once
you have installed pear, it should all just be available from PHP, but
it seems in my case it just isn't. This just has to be something very
simple that I've missed - can anyone tell me what?