November 18, 2008

Unknown Role class: PEAR_Installer_Role_Pear_Installer_role_test

If you ever faced with this problem(Unknown Role class: PEAR_Installer_Role_Pear_Installer_role_test) while installing some pear package like OLE, just do;
export LC_ALL="C"
export LANG="C"
pear install OLE


also this command may not work then use;
pear install channel://pear.php.net/OLE-1.0.0RC1

and also if you ever faced with this while compiling PHP;
Fatal error: Call to undefined method PEAR_Registry::packageinfo() in phar://install-pear-nozlib.phar/PEAR/Dependency2.php on line 659
make[1]: *** [install-pear-installer] Error 255
make : *** [install-pear] Error 2

the same solution above is worked too;
export LC_ALL="C"
export LANG="C"
make install

No comments: