Installing OAuth on CentOS

Installing OAuth on CentOS 5.4

I've recently needed to install the OAuth libarary on CentOS for use in creating Twitter applications and using the Linkedin API.

Here's how to do it.

$ yum install curl-devel gcc

Next, install oauth using pecl

$ pecl install oauth-beta

After oauth installs, you will need to do 1 of the below 2 things

1. If the directory /etc/php.d exists, create a new file oauth.ini inside the folder.
Paste the following in oauth.ini
extension=oauth.so

2. Alternatively, place the following line in /etc/php.ini
extension=oauth.so

References:
http://developer.linkedin.com/message/1610

评论

此博客中的热门博文

Java SMTP

JavaScript quiz - Scoping related

qtCreator + Eclipse