Re: PHP PEAR Install Questions

From: Date: Mon, 30 Jun 2008 20:07:36 +0000
Subject: Re: PHP PEAR Install Questions
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-29048@lists.php.net to get a copy of this message
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/

« previous php.pear.general (#29048) next »