Question

Missing Pear?

  • Posted on March 24, 2014
  • sptrsnAsked by sptrsn

I have a mail parsing script that I set up with help. Up until 3 days ago, it was working flawlessly. Now It’s throwing an error…

Warning: require_once(PEAR.php): failed to open stream: No such file or directory in /usr/share/pear/mimeDecode.php on line 65 Fatal error: require_once(): Failed opening required ‘PEAR.php’ (include_path=‘.:/usr/share/pear:/usr/share/php’) in /usr/share/pear/mimeDecode.php on line 65

I verified that mimeDecode.php is in fact present in /usr/share/pear.

  1. How can I know if all the Pear files are installed?
  2. the script is being called from CLI. I know there are different include paths depending on cli or not cli. Where would I check/edit the path, and what should the path say to make sure it includes Pear?

Running CentOS 6.4 x32 Apache 2.2.15 PHP 5.3.3


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I have no idea how or why… but all of the sudden Pear was not installed. <br>Installed pear and everything works fine now.