Installing a PHP Pear Module

How do you install a PHP Pear Module?

pear install <module-name>

So – if you wanted to instal the Pear Pager module use:

pear install Pager

If the install was successful you shoudl see something to the extent of:

downloading Pager-2.4.8.tgz …
Starting to download Pager-2.4.8.tgz (36,122 bytes)
……….done: 36,122 bytes
install ok: channel://pear.php.net/Pager-2.4.8

Note that depending on your permission for your user account – you many need to include the sudo prompt.

Comments

comments

Posted in and tagged , , .