Solved

Error installing extension Linux

Posted on 2016-11-24
4
58 Views
Last Modified: 2016-12-01
I´m installing oauth on my debian wheezy. But I´m unable toinitialize the module :
Module compiled with module API=20100505
PHP compiled with module API=20121212
these options need to match
my php is 5.5.38

I did pecl install oauth-1.2.3 and manual installation, but nothing. I change php.ini and php-config, but still nothing.
Any idea
0
Comment
Question by:Jose Bredariol
  • 2
  • 2
4 Comments
 
LVL 40

Assisted Solution

by:noci
noci earned 500 total points
ID: 41901281
Hm. do you have multiple versions of PHP installed?
Then pecl might have built against the wrong one...

API2010... would indicate a PHP5.4, or you may need to install a new oauth. (php updated without updating oauth?)
Did you also update php*-dev packages?

btw, don't start updating PHP API versions in config files that is a road to hell without return ticket. The api version is a way to describe capabilities.
just editing the version string does NOT changes the functionality the php executable gives.
The mismatch is just an early warning the things might not work out as expected later on. Removing the check will still cause the failures later on.
0
 

Author Comment

by:Jose Bredariol
ID: 41905578
OK, So what options I have ? can I install other php version and buld oauth ?
What I have to do to install oauth ?
0
 
LVL 40

Accepted Solution

by:
noci earned 500 total points
ID: 41905808
Did you try oauth2?  

You could try to install from pecl: http://www.mkfoster.com/2009/01/04/how-to-install-a-php-pecl-extensionmodule-on-ubuntu/

then this is the package:
https://pecl.php.net/package/oauth
0
 

Author Closing Comment

by:Jose Bredariol
ID: 41908984
Thanks all
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now