Solved

Error installing extension Linux

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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…
The viewer will learn how to dynamically set the form action using jQuery.

816 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

13 Experts available now in Live!

Get 1:1 Help Now