Archive

Archive for the ‘pear’ Category

Manually install pear packages

January 11, 2012 1 comment

1. Download the package from pear.php.net/packages.php

eg.

# wget http://download.pear.php.net/package/HTML_Table-1.8.3.tgz

2. Install downloaded file

# pear installl HTML_Table-1.8.3.tgz

Note: with .tgz

3. Install from pear again

# pear install HTML_Table-1.8.3

Note: without .tgz

4. Verify the installed packages

# pear list

Installed packages, channel pear.php.net:
=========================================
Package          Version State
Archive_Tar      1.3.7   stable
Console_Getopt   1.2.3   stable
HTML_Common      1.2.5   stable
HTML_Table       1.8.3   stable
PEAR             1.9.4   stable
Structures_Graph 1.0.4   stable
XML_RPC          1.5.4   stable
XML_Util         1.2.1   stable

5. Verify installed package location

# ls /usr/share/pear/HTML/Table.php

Categories: pear

install pyrus

January 11, 2012 Leave a comment

1. download

# wget http://pear2.php.net/pyrus.phar

2. install

# php pyrus.phar

 

Categories: pear Tags:

Add pear channels

January 11, 2012 Leave a comment

Sometimes pear.php.net not work for install packages, so add more channels:

# pear channel-discover pear.netpirates.net

# pear channel-discover components.ez.no

# pear config-set auto_discover 1

# pear install pear.phpqatools.org/phpqatools PHPDocumentor

# pear channel-discover components.ez.no

Categories: channels

pear error

January 11, 2012 Leave a comment

Issue:

# pear install HTML_Common2

Package “HTML_Common2” Version “2.0.0” does not have REST xml available
install failed

Solution:

This is related to dns resolve problem.

Check:

# wget pear.php.net

Returns:

wget: unable to resolve host address pear.php.net

–> refer to nsswitch.conf issue.

Categories: nsswitch.conf, pear