Solved

Error installing extension Linux

Posted on 2016-11-24
4
70 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

792 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