[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pear-general
Subject:    Re: [PEAR] PHP PEAR Install Questions
From:       "Brett Bieber" <brett.bieber () gmail ! com>
Date:       2008-06-30 20:07:36
Message-ID: efa010fb0806301307i40fd5d20n7bfb716bbee3490e () mail ! gmail ! com
[Download RAW message or body]

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.

> 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic