PEAR Articles
  Home arrow PEAR Articles arrow Page 2 - Introduction to PEAR
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Forums Sitemap 
Download TestComplete 
JMSL Numerical Library 
IBM® developerWorks
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PEAR ARTICLES

Introduction to PEAR
By: bluephoenix
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 8
    2003-09-30

    Table of Contents:
  • Introduction to PEAR
  • PEAR Installation
  • The Benchmark Package
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Introduction to PEAR - PEAR Installation


    (Page 2 of 4 )

    PEAR is installed by default with PHP version 4.3.0 and above. You'll only need to install it if you're restricted to earlier versions. Information on how to manually install PEAR can be found at http://pear.php.net/manual/en/installation.getting.php.

    With root permissions, run "pear list" to see a listing of PEAR packages already installed on the system.

    [root@zaemis www]# pear list
    Installed packages:
    ===================
    Package        Version  State
    Archive_Tar    1.1      stable
    Console_Getopt 1.0      stable
    DB             1.5.0RC2 stable
    HTTP           1.2.1    stable
    Mail           1.1.2    stable
    Net_SMTP       1.2.3    stable
    Net_Socket     1.0.1    stable
    PEAR           1.2.1    stable
    XML_Parser     1.0.1    stable
    XML_RPC        1.0.4    stable

    You will receive an error message saying a lock file could not be created and permission has been denied if you do not have root permissions.

    [bluephoenix@zaemis www]$ pear list
    could not create lock file: failed to open stream: Permission denied

    We'll use the Benchmark package to introduce ourselves to the world of PEAR. It isn't installed by default so we'll need to install it ourselves. To install a package, run "pear install package-name".

    [root@zaemis www]# pear install Benchmark
    downloading Benchmark-1.2.1.tar ...
    ...done: 30,720 bytes
    install ok: Benchmark 1.2.1

    More PEAR Articles Articles
    More By bluephoenix


     

    PEAR ARTICLES ARTICLES

    - A PEAR CMS: Examining the Code
    - Building a Content Management System with PE...
    - Installing a PEAR Package
    - My PEAR: The Beginning
    - Using XML_RPC2 with PEAR
    - Using Web Service APIs (Amazon and Yahoo!) w...
    - Database Abstraction with MDB2 from PEAR
    - The PEAR Package Tour: PEAR Basics
    - Caching with PEAR::Cache
    - Introduction to PEAR
    - The PEAR ITX Templating System





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
    Stay green...Green IT