Solved

Error installing extension Linux

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

Assisted Solution

by:noci
noci earned 500 total points
Comment Utility
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
Comment Utility
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 39

Accepted Solution

by:
noci earned 500 total points
Comment Utility
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
Comment Utility
Thanks all
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

762 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

10 Experts available now in Live!

Get 1:1 Help Now