SBDavid
Feb 6th, 2010
Feb 6th, 2010
Installing the PEAR package manager and Checking if PEAR works
Installing the PEAR package manager and Checking if PEAR works
When using PHP >= 4.3.0, the PEAR Package Manager is already installed unless one has used the ./configure option –without-pear.
Verifying command line tool
Both pear and pecl tools should be available everywhere on command line. For that to work, pear’s binary (bin) directory should be in your PATH variable.
# apt-cache search php-pear
php-xml-util – a XML utility for php-pear
php-pear – PEAR – PHP Extension and Application Repository
php-xml-util – a XML utility for php-pear
php-pear – PEAR – PHP Extension and Application Repository
To verify it works, simply type pear. A list of commands should be shown:
root@laptop:~# pear
Commands:
build Build an Extension From C Source
bundle Unpacks a Pecl Package
channel-add Add a Channel
Commands:
build Build an Extension From C Source
bundle Unpacks a Pecl Package
channel-add Add a Channel
You should further test that PEAR is up to date:
root@laptop:~# pear version
PEAR Version: 1.7.1
PHP Version: 5.2.6-3ubuntu4.5
Zend Engine Version: 2.2.0
PEAR Version: 1.7.1
PHP Version: 5.2.6-3ubuntu4.5
Zend Engine Version: 2.2.0