Re: PHP PEAR Install Questions
| From: | Jonathan Street | Date: | Tue, 01 Jul 2008 09:55:26 +0000 |
| Subject: | Re: PHP PEAR Install Questions | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29052@lists.php.net to get a copy of this message | ||
2008/6/30 Brett Bieber <brett.bieber@gmail.com>:
> On Mon, Jun 30, 2008 at 2:52 PM, Christopher J. Ford
> <cjf02@health.state.ny.us> wrote:
>> Brett,
>>
>> I see quite often a list of the modules that depend on the one i
>> am viewing. But is there a way of finding out what the reverse
>> is? In other words, if i download a module, how do i know what
>> modules it depends on?
>
> Each specific version of a library/package will have its own
> dependency list. You can see the immediate/explicitly declared
> dependencies by viewing the download page for the package you're
> installing. For example:
> http://pear.php.net/package/HTML_Table/download
>
> "This package has three dependencies:
> * PHP Version: PHP 4.3.0 or newer
> * PEAR Package: PEAR Installer 1.5.0 or newer
> * PEAR Package: HTML_Common 1.2.3 or newer"
>
> Keep in mind, this may not give you the full dependency stack, as each
> dependency will have its own dependencies. To determine the entire
> stack of dependencies for a library you have to parse each package,
> examine the dependencies and construct a directed acyclic graph (and
> this graph may be different depending on the specific versions of each
> library within the graph). Thankfully, the PEAR Installer handles this
> all for you when you type
pear install HTML_Table for example.
If you want the dependencies as well I believe the syntax would be:
pear install --alldeps HTML_Table
-or-
pear install --onlyreqdeps HTML_Table
>
>> Or does each module include it's dependencies?
>
> Not usually. The PEAR Installer automatically handles dependency
> resolution for you, so including dependencies is not required, nor
> recommended. By explicitly declaring required dependencies and
> utilizing the PEAR installer, each component can be upgraded (or
> downgraded!) individually when necessary.
>
> --
> Brett Bieber
>
> http://saltybeagle.com/
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>