Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Section A.3. Installing Packages

A.3. Installing Packages

The processes of installing PEAR and PECL packages should be almost identical—and for the most part, they are. There are some extensions (such as the XHProf extension we used in Section 6.5) that require you to compile them by hand.

To install a package for PEAR, you just need to run:

$ pear install <package>

This is the simplest situation—if there is a stable package with that name, it will just install. You can specify unstable packages simply by appending it to the file name:
$ pear install <package>-beta

Or for a particular version:
$ pear install <package>-0.3.1

As an example, let’s install the PEAR_PackageFileManager2 package. This package can be used to create your own packages:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial