Daily Archives: January 27, 2015

Home »  2015 »  January »  27th (Tuesday)

php pear 관련

 출처 : http://inderpreetsingh.com/2011/02/10/fix-pearmail-due-to-centos-repos-using-old-pear/
Fix Pear/Mail due to CentOS/RHEL repos using old pear
February 10, 2011 by Inder

I couldn’t install the Mail PEAR package because the pear version shipped with the current CentOS/RHEL is 1.4.9, whereas the required version is 1.5.6 or above. The following is the error that you may see.

1
2
3
4
5
6
7

# pear install Mail
WARNING: channel “pear.php.net” has updated its protocols, use “channel-update pear.php.net” to update
Did not download optional dependencies: pear/Net_SMTP, use –alldeps to download automatically
pear/Mail requires PEAR Installer (version >= 1.5.6), installed version is 1.4.9
pear/Mail can optionally use package “pear/Net_SMTP” (version >= 1.4.1)
No valid packages found
install failed

There are three problems above:

WARNING: channel “pear.php.net” has updated its protocols, use “channel-update pear.php.net” to update
Did not download optional dependencies: pear/Net_SMTP, use –alldeps to download automatically
Main problem: pear/Mail requires PEAR Installer (version >= 1.5.6), installed version is 1.4.9

To fix problem #1 (update channel pear.php.net):

1
2
3

# pear channel-update pear.php.net
Retrieving channel.xml from remote server
Update of Channel “pear.php.net” succeeded

To fix problem #2 (Net_SMTP […]