Installing PEAR Packages

Installing PEAR is not impossibly hard, and once you master the installation of a single package, installing more is a snap. If you want to try your hand at installing PEAR packages, Please follow the below tips
  • You may need to invoke the pear installer as a superuser(or using sudo).
  • Make sure that the location of your PEAR directory is in your PHP include path.
  • If using PHP 5,you may want to set error reporting below E_STRICT, as not all PEAR packages have been upgraded to the new object model.
  • Run the command pear help install to see what options are available.
If you are on a hosted server, the hosting company should be willing to install PEAR packages for you(which benefit every user on the server). If they won't do that, you ought to consider a different hosting company seriously. Barring that, for some PEAR classes,you can just download a Package from the PEAR site,copy its files onto your server, and include them as if they were any other class definition files.