Php fatal error loading ‘Mail/mimeDecode’ even with php-pear install

PHP

I have centos machine where I have install using yum install php-pear. So I tried this in my php page

require_once 'Mail/RFC822.php';
require_once 'Mail/mimeDecode.php';

I get this error "Warning: require_once(Mail/mimeDecode.php): failed to open stream: No such file or directory in /var/www/html/pro1/ast/include.inc.php on line 36 Fatal error: require_once(): Failed opening required 'Mail/mimeDecode.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/pro1/ast/include.inc.php on line 36". What else to be install ?

Best Answer

For the benefit of the rest. Besides doing yum install php-pear. Next thing is this pear install Mail and finally you need yum install php-pear-Mail-mimeDecode. So far this have helped me.

Related Topic