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.
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
Here's how to do it.
$ yum install curl-devel gcc
$
yum install pcre-devel
$
yum install php-pear
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
'프로그래밍 > PHP' 카테고리의 다른 글
PHP 5.3.0 에서 사라진 함수들 대체 (0) | 2011.05.27 |
---|---|
Twitter OAuth for PHP (0) | 2011.05.10 |
From MySQL to jQuery, via PHP, XML & Ajax (0) | 2011.02.26 |
PHP로 파일 압축/해제하기 - PclZip Library (0) | 2010.11.25 |
PHP UTF-8 한글 자르기 (0) | 2010.07.27 |