Re: PEAR install on demand

From: Date: Thu, 01 Mar 2007 07:12:09 +0000
Subject: Re: PEAR install on demand
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26694@lists.php.net to get a copy of this message
On 2/28/07, Paul Scott <pscott@uwc.ac.za> wrote:
I have a slight issue that I suspect that the PEAR installer can help me out on, but can't really find anything that is going to help, besides some nasty code. In our framework (seen in action on http://digitalfreedom.uwc.ac.za) some modules require additional PEAR objects to be installed (besides those that are required by the base system and therefore the installer - which the person setting up the site must install in the usual way). Best case scenario here would be that when a module is installed, the required PEAR dependencies are downloaded as well and installed. Is this possible (will permissions get in the way?) and is there a method/function/object that I can use to facilitate this effectively? Any help would be greatly appreciated. All googling came up with was the PEAR frontend stuff, which is not really all that suitable.
My best suggestion is to package up your modules as pear installable packages and use the installer's built in dependency support. Other than that you can try to use PEAR_PackageUpdate or soemthing similar to try install-on-demand. -- Justin Patrin

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