Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install a php extension through pecl and I'm getting some weird errors... any ideas?

wcmisdpilotpc1:~ alexus$ sudo pecl install oauth

Notice: Array to string conversion in PEAR/REST/10.php on line 85

Warning: Invalid argument supplied for foreach() in PEAR/REST/10.php on line 88

Warning: Invalid argument supplied for foreach() in /usr/lib/php/PEAR/REST/10.php on line 88

Fatal error: Cannot use string offset as an array in /usr/lib/php/PEAR/REST/10.php on line 256
wcmisdpilotpc1:~ alexus$ 
share|improve this question
up vote 2 down vote accepted

You are getting PHP errors, and I believe those are coming directly from PEAR itself, not the extension you are trying to download.

You could always try installing the extension manually.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.