A vanilla RHEL4 system which has had it's PHP5 installed from the Red Hat Web Application Stack 1.0 Beta (for ES v. 4 x86) channel via up2date -i php contains pear. You can see what modules are installed using the built-in pear command:
$ pear list Installed packages, channel pear.php.net: ========================================= Package Version State Archive_Tar 1.3.1 stable Console_Getopt 1.2 stable PEAR 1.4.6 stable XML_RPC 1.4.5 stableEach module, or set of PHP files, is installed in /usr/share/pear.
$ find /usr/share/pear -name \*.php | wc -l 81To install a module you can use pear install DB and then the find command above will return 98 files. None of this should interrupt your running LAMP server unless you are overwriting PEAR packages that are already in use. Pear also handles dependencies:
$ pear install HTML_QuickForm WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update downloading HTML_QuickForm-3.2.10.tgz ... Starting to download HTML_QuickForm-3.2.10.tgz (101,851 bytes) .......................done: 101,851 bytes downloading HTML_Common-1.2.4.tgz ... Starting to download HTML_Common-1.2.4.tgz (4,519 bytes) ...done: 4,519 bytes install ok: channel://pear.php.net/HTML_Common-1.2.4 install ok: channel://pear.php.net/HTML_QuickForm-3.2.10
No comments:
Post a Comment