INSTALL 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. PEAR - The PEAR Installer
  2. =========================
  3. Installing the PEAR Installer.
  4. You should install PEAR on a local development machine first. Installing
  5. PEAR on a remote production machine should only be done after you are
  6. familiar with PEAR and have tested code using PEAR on your development
  7. machine.
  8. There are two methods of installing PEAR
  9. - PEAR bundled in PHP
  10. - go-pear
  11. We will first examine how to install PEAR that is bundled with PHP.
  12. Microsoft Windows
  13. =================
  14. If you are running PHP 5.2.0 or newer, simply download and
  15. run the windows installer (.msi) and PEAR can be automatically
  16. installed.
  17. Otherwise, for older PHP versions, download the .zip of windows,
  18. there is a script included with your PHP distribution that is called
  19. "go-pear". You must open a command box in order to run it. Click
  20. "start" then click "Run..." and type "cmd.exe" to open a command box.
  21. Use "cd" to change directory to the location of PHP where you unzipped it,
  22. and run the go-pear command.
  23. Unix
  24. ====
  25. When compiling PHP from source, you simply need to include the
  26. --with-pear directive on the "./configure" command. This is "on"
  27. by default in most PHP versions, but it doesn't hurt to list it
  28. explicitly. You should also consider enabling the zlib extension via
  29. --enable-zlib, so that the PEAR installer will be able to handle gzipped
  30. files (i.e. smaller package files for faster downloads). Later, when you
  31. run "make install" to install PHP itself, part of the process will be
  32. prompts that ask you where you want PEAR to be installed.
  33. go-pear
  34. =======
  35. For users who cannot perform the above steps, or who wish to obtain the
  36. latest PEAR with a slightly higher risk of failure, use go-pear. go-pear
  37. is obtained by downloading http://pear.php.net/go-pear and saving it as go-pear.php.
  38. After downloading, simply run "php go-pear.php" or open it in a web browser
  39. (windows only) to download and install PEAR.
  40. You can always ask general installation questions on pear-general@lists.php.net,
  41. a public mailing list devoted to support for PEAR packages and installation-
  42. related issues.
  43. Happy PHPing, we hope PEAR will be a great tool for your development work!