Skip to content

Instantly share code, notes, and snippets.

@justinrainbow
Created October 14, 2010 19:56
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinrainbow/626913 to your computer and use it in GitHub Desktop.
Save justinrainbow/626913 to your computer and use it in GitHub Desktop.
require 'formula'
class Apc <Formula
url 'http://pecl.php.net/get/APC-3.1.4.tgz'
homepage 'http://php.net/manual/en/book.apc.php'
md5 ''
version '3.1.4'
def install
Dir.chdir "APC-#{version}" do
# See http://github.com/mxcl/homebrew/issues/#issue/69
ENV.universal_binary unless Hardware.is_64_bit?
system "phpize"
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--with-php-config=#{Formula.factory('php').prefix}/bin/php-config",
"--prefix=#{prefix}"
system "make install"
prefix.install 'modules/apc.so'
end
end
end
@justinrainbow
Copy link
Author

brew edit apc

@justinrainbow
Copy link
Author

After install, add the following to your php.ini file

[apc]
extension=apc.so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment