Skip to content

Instantly share code, notes, and snippets.

@mrchrisadams
Created August 8, 2010 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrchrisadams/513968 to your computer and use it in GitHub Desktop.
Save mrchrisadams/513968 to your computer and use it in GitHub Desktop.
require 'formula'
class Apc <Formula
url 'http://pecl.php.net/get/APC-3.1.3p1.tgz'
homepage 'http://php.net/manual/en/book.apc.php'
md5 ''
version '3.1.3p1'
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", "--prefix=#{prefix}"
system "make install"
prefix.install 'modules/apc.so'
end
end
end
----------------------------------------------------------------------
Libraries have been installed in:
/private/tmp/homebrew-apc-3.1.3p1-zG5t/APC-3.1.3p1/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing shared extensions: /usr/local/Cellar/php52/5.2.13/lib/php/extensions/no-debug-non-zts-20060613/
cp: /usr/local/Cellar/php52/5.2.13/lib/php/extensions/no-debug-non-zts-20060613/#INST@6217#: Permission denied
make: *** [install-modules] Error 1
Exit status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/apc.rb#L16
==> Environment
HOMEBREW_VERSION: 0.6
HEAD: cebb4ada479db74bd750a6ea051d22f88fe27b8a
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_CACHE: /Users/chrisadams/Library/Caches/Homebrew
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.6.4
Kernel Architecture: i386
Ruby: 1.8.7-174
GCC-4.0: build 5494 (5493 or newer recommended)
GCC-4.2: build 5664 (5659 or newer recommended)
LLVM: build 2326 (2207 or newer recommended)
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/cc => /usr/bin/gcc-4.2
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc => /usr/bin/gcc-4.2
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
MAKEFLAGS: -j2
Error: Failure while executing: make install
Please report this bug at http://github.com/mxcl/homebrew/issues
Consider running `brew doctor` if a large number of installs are failing.
brew install APC 10.39s user 8.48s system 85% cpu 22.094 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment