Wednesday, April 7, 2010

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

2. Alternatively, place the following line in /etc/php.ini


1 comment:

  1. when i give "pecl install oauth-beta" it shows pecl command not found... How to reslove of this???