Created
October 14, 2010 19:56
-
-
Save justinrainbow/626913 to your computer and use it in GitHub Desktop.
This file contains 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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After install, add the following to your
php.ini
file