Created
February 29, 2012 05:19
-
-
Save jsjohnst/1938098 to your computer and use it in GitHub Desktop.
Steps for getting PECL OAuth (or any PECL package really) install on OS Lion 10.7.3 with Xcode 4.3+ (requires CLI tools to be installed already)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) install PEAR / PECL | |
$ cd /usr/lib/php | |
$ sudo php install-pear-nozlib.phar | |
2) install autoconf 2.13 via homebrew | |
either pull from me here: https://github.com/jsjohnst/homebrew | |
or | |
$ cd /usr/local/Library/Formula/ | |
$ vi autoconf.rb | |
require 'formula' | |
class Autoconf < Formula | |
url 'http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz' | |
homepage 'http://www.gnu.org/software/autoconf/' | |
md5 '9de56d4a161a723228220b0f425dc711' | |
def install | |
system "./configure", "--program-suffix=213", | |
"--prefix=#{prefix}", | |
"--infodir=#{info}" | |
system "make install" | |
end | |
end | |
3) set environment variables | |
$ export PHP_AUTOCONF=/usr/local/bin/autoconf213 | |
$ export PHP_AUTOHEADER=/usr/local/bin/autoheader213 | |
4) unfortunately sudo peck install oath still doesn't work right, so you must download / install manually | |
$ pecl download oauth | |
$ tar -xzvf oauth-1.2.2.tgz | |
$ cd oauth-1.2.2 | |
$ phpize | |
$ ./configure | |
$ make | |
$ sudo make install | |
5) Enable the module in php.ini | |
$ sudo vi /etc/php.ini | |
extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/oauth.so | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment