Skip to content

Instantly share code, notes, and snippets.

@gskluzacek
Created July 8, 2013 18:36
Show Gist options
  • Save gskluzacek/5951317 to your computer and use it in GitHub Desktop.
Save gskluzacek/5951317 to your computer and use it in GitHub Desktop.
related info for bug report: brew install php55-imagick fails with cannot locate header file
Chateau-Louise:Cellar gskluzacek$ brew doctor
Your system is ready to brew.
Chateau-Louise:Cellar gskluzacek$
Chateau-Louise:Cellar gskluzacek$ brew install -V /usr/local/Library/Formula/php55-imagick.rb
==> Downloading http://pecl.php.net/get/imagick-3.1.0RC2.tgz
Already downloaded: /Library/Caches/Homebrew/php55-imagick-3.1.0RC2.tgz
==> /usr/local/Cellar/php55/5.5.0/bin/phpize
==> ./configure --prefix=/usr/local/Cellar/php55-imagick/3.1.0RC2 --with-php-config=/usr/local/Cellar/php55/5.5.0/bin/php-config
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... found in /usr/local/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.8.6 Q16
checking for MagickWand.h header file... configure: error: Cannot locate header file MagickWand.h
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
Chateau-Louise:Cellar gskluzacek$
Chateau-Louise:Cellar gskluzacek$ HOMEBREW_MAKE_JOBS=1 VERBOSE=1 brew install php55-imagick 2>&1
==> Downloading http://pecl.php.net/get/imagick-3.1.0RC2.tgz
Already downloaded: /Library/Caches/Homebrew/php55-imagick-3.1.0RC2.tgz
tar xf /Library/Caches/Homebrew/php55-imagick-3.1.0RC2.tgz
==> /usr/local/Cellar/php55/5.5.0/bin/phpize
/usr/local/Cellar/php55/5.5.0/bin/phpize
Configuring for:
PHP Api Version: 20121113
Zend Module Api No: 20121212
Zend Extension Api No: 220121212
==> ./configure --prefix=/usr/local/Cellar/php55-imagick/3.1.0RC2 --with-php-config=/usr/local/Cellar/php55/5.5.0/bin/php-config
./configure --prefix=/usr/local/Cellar/php55-imagick/3.1.0RC2 --with-php-config=/usr/local/Cellar/php55/5.5.0/bin/php-config
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/local/Library/ENV/4.3/sed
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-apple-darwin12.4.0
checking host system type... x86_64-apple-darwin12.4.0
checking target system type... x86_64-apple-darwin12.4.0
checking for PHP prefix... /usr/local/Cellar/php55/5.5.0
checking for PHP includes... -I/usr/local/Cellar/php55/5.5.0/include/php -I/usr/local/Cellar/php55/5.5.0/include/php/main -I/usr/local/Cellar/php55/5.5.0/include/php/TSRM -I/usr/local/Cellar/php55/5.5.0/include/php/Zend -I/usr/local/Cellar/php55/5.5.0/include/php/ext -I/usr/local/Cellar/php55/5.5.0/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/Cellar/php55/5.5.0/lib/php/extensions/no-debug-non-zts-20121212
checking for PHP installed headers prefix... /usr/local/Cellar/php55/5.5.0/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking whether to enable the imagick extension... yes, shared
checking whether to enable the imagick GraphicsMagick backend... no
checking ImageMagick MagickWand API configuration program... found in /usr/local/bin/MagickWand-config
checking if ImageMagick version is at least 6.2.4... found version 6.8.6 Q16
checking for MagickWand.h header file... configure: error: Cannot locate header file MagickWand.h
==> Formula
Tap: josegonzalez/php
Path: /usr/local/Library/Taps/josegonzalez-php/Formula/php55-imagick.rb
==> Configuration
HOMEBREW_VERSION: 0.9.4
HEAD: 990de67129b64aa5dba5d494a21d1c30a93bb6c5
CPU: 8-core 64-bit ivybridge
OS X: 10.8.4-x86_64
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
X11: 2.7.4 => /opt/X11
==> ENV
HOMEBREW_CC: clang
MAKEFLAGS: -j1
CMAKE_PREFIX_PATH: /usr/local/opt/gettext:/usr/local/opt/zlib:/usr/local
CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/
CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: /usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/zlib/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.8
HOMEBREW_MAKE_JOBS: 1
ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal
OBJC: cc
PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/autoconf/bin:/usr/local/opt/freetype/bin:/usr/local/opt/gettext/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libpng/bin:/usr/local/opt/php55/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/imagemagick/bin:/usr/bin:/bin:/usr/sbin:/sbin
Error: php55-imagick did not build
Logs: /Users/gskluzacek/Library/Logs/Homebrew/php55-imagick/config.log
Chateau-Louise:Cellar gskluzacek$
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/local/Cellar/php55-imagick/3.1.0RC2 --with-php-config=/usr/local/Cellar/php55/5.5.0/bin/php-config
## --------- ##
## Platform. ##
## --------- ##
hostname = Chateau-Louise.local
uname -m = x86_64
uname -r = 12.4.0
uname -s = Darwin
uname -v = Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 12.4.0: Wed May 1 17:57:12 PDT 2013; root:xnu-2050.24.15~1/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 8.00 gigabytes
Default processor set: 164 tasks, 816 threads, 8 processors
Load average: 3.38, Mach factor: 4.61
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/Library/ENV/4.3
PATH: /usr/local/opt/autoconf/bin
PATH: /usr/local/opt/freetype/bin
PATH: /usr/local/opt/gettext/bin
PATH: /usr/local/opt/jpeg/bin
PATH: /usr/local/opt/libpng/bin
PATH: /usr/local/opt/php55/bin
PATH: /usr/local/opt/pkg-config/bin
PATH: /usr/local/opt/libtool/bin
PATH: /usr/local/opt/imagemagick/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2295: checking for grep that handles long lines and -e
configure:2353: result: /usr/bin/grep
configure:2358: checking for egrep
configure:2420: result: /usr/bin/grep -E
configure:2425: checking for a sed that does not truncate output
configure:2479: result: /usr/local/Library/ENV/4.3/sed
configure:2669: checking for C compiler version
configure:2678: cc --version >&5
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix
configure:2689: $? = 0
configure:2678: cc -v >&5
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.4.0
Thread model: posix
clang: warning: argument unused during compilation: '-isystem /usr/local/include'
clang: warning: argument unused during compilation: '-isystem /usr/include/libxml2'
clang: warning: argument unused during compilation: '-isystem /System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers/'
clang: warning: argument unused during compilation: '-I /usr/local/opt/gettext/include'
clang: warning: argument unused during compilation: '-I /usr/local/opt/zlib/include'
clang: warning: argument unused during compilation: '-L/usr/local/opt/gettext/lib'
clang: warning: argument unused during compilation: '-L/usr/local/opt/zlib/lib'
... rest of stderr output deleted ...
configure:2689: $? = 0
configure:2678: cc -V >&5
clang: error: unsupported option '-V -isystem/usr/local/include'
clang: error: no input files
configure:2689: $? = 1
configure:2678: cc -qversion >&5
clang: error: no input files
configure:2689: $? = 1
configure:2709: checking whether the C compiler works
configure:2731: cc conftest.c >&5
configure:2735: $? = 0
configure:2783: result: yes
configure:2786: checking for C compiler default output file name
configure:2788: result: a.out
configure:2794: checking for suffix of executables
configure:2801: cc -o conftest conftest.c >&5
configure:2805: $? = 0
configure:2827: result:
configure:2849: checking whether we are cross compiling
configure:2857: cc -o conftest conftest.c >&5
configure:2861: $? = 0
configure:2868: ./conftest
configure:2872: $? = 0
configure:2887: result: no
configure:2892: checking for suffix of object files
configure:2914: cc -c conftest.c >&5
configure:2918: $? = 0
configure:2939: result: o
configure:2943: checking whether we are using the GNU C compiler
configure:2962: cc -c conftest.c >&5
configure:2962: $? = 0
configure:2971: result: yes
configure:2980: checking whether cc accepts -g
configure:3000: cc -c -g conftest.c >&5
configure:3000: $? = 0
configure:3041: result: yes
configure:3058: checking for cc option to accept ISO C89
configure:3121: cc -c -g -O2 conftest.c >&5
configure:3121: $? = 0
configure:3134: result: none needed
configure:3160: checking how to run the C preprocessor
configure:3191: cc -E conftest.c
configure:3191: $? = 0
configure:3205: cc -E conftest.c
conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:3205: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3230: result: cc -E
configure:3250: cc -E conftest.c
configure:3250: $? = 0
configure:3264: cc -E conftest.c
conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:3264: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3295: checking for icc
configure:3304: result: no
configure:3318: checking for suncc
configure:3327: result: no
configure:3345: checking whether cc understands -c and -o together
configure:3373: cc -c conftest.c -o conftest2.o >&5
configure:3377: $? = 0
configure:3383: cc -c conftest.c -o conftest2.o >&5
configure:3387: $? = 0
configure:3442: result: yes
configure:3456: checking for system library directory
configure:3471: result: lib
configure:3478: checking if compiler supports -R
configure:3497: cc -o conftest -g -O2 conftest.c -R /usr/lib >&5
clang: warning: argument unused during compilation: '-R'
ld: can't map file, errno=22 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3497: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3507: result: no
configure:3512: checking if compiler supports -Wl,-rpath,
configure:3531: cc -o conftest -g -O2 conftest.c -Wl,-rpath,/usr/lib >&5
configure:3531: $? = 0
configure:3541: result: yes
configure:3586: checking build system type
configure:3600: result: x86_64-apple-darwin12.4.0
configure:3620: checking host system type
configure:3633: result: x86_64-apple-darwin12.4.0
configure:3653: checking target system type
configure:3666: result: x86_64-apple-darwin12.4.0
configure:3769: checking for PHP prefix
configure:3771: result: /usr/local/Cellar/php55/5.5.0
configure:3773: checking for PHP includes
configure:3775: result: -I/usr/local/Cellar/php55/5.5.0/include/php -I/usr/local/Cellar/php55/5.5.0/include/php/main -I/usr/local/Cellar/php55/5.5.0/include/php/TSRM -I/usr/local/Cellar/php55/5.5.0/include/php/Zend -I/usr/local/Cellar/php55/5.5.0/include/php/ext -I/usr/local/Cellar/php55/5.5.0/include/php/ext/date/lib
configure:3777: checking for PHP extension directory
configure:3779: result: /usr/local/Cellar/php55/5.5.0/lib/php/extensions/no-debug-non-zts-20121212
configure:3781: checking for PHP installed headers prefix
configure:3783: result: /usr/local/Cellar/php55/5.5.0/include/php
configure:3786: checking if debug is enabled
configure:3812: result: no
configure:3815: checking if zts is enabled
configure:3841: result: no
configure:3912: checking for re2c
configure:3942: result: no
configure:3967: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure:3981: checking for gawk
configure:4012: result: no
configure:3981: checking for nawk
configure:4012: result: no
configure:3981: checking for awk
configure:3998: found /usr/bin/awk
configure:4009: result: awk
configure:4032: checking if awk is broken
configure:4039: result: no
configure:4052: checking whether to enable the imagick extension
configure:4092: result: yes, shared
configure:4101: checking whether to enable the imagick GraphicsMagick backend
configure:4116: result: no
configure:4128: checking ImageMagick MagickWand API configuration program
configure:4147: result: found in /usr/local/bin/MagickWand-config
configure:4153: checking if ImageMagick version is at least 6.2.4
configure:4156: result: found version 6.8.6 Q16
configure:4174: checking for MagickWand.h header file
configure:4181: error: Cannot locate header file MagickWand.h
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin12.4.0
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=set
ac_cv_env_CC_value=cc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin12.4.0
ac_cv_objext=o
ac_cv_path_EGREP='/usr/bin/grep -E'
ac_cv_path_GREP=/usr/bin/grep
ac_cv_prog_AWK=awk
ac_cv_prog_CPP='cc -E'
ac_cv_prog_cc_c89=
ac_cv_prog_cc_cc_c_o=yes
ac_cv_prog_cc_g=yes
ac_cv_target=x86_64-apple-darwin12.4.0
lt_cv_path_SED=/usr/local/Library/ENV/4.3/sed
php_cv_cc_dashr=no
php_cv_cc_rpath=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AWK='awk'
CC='cc'
CFLAGS='-g -O2'
CONFIGURE_COMMAND=' '\''./configure'\'' '\''--prefix=/usr/local/Cellar/php55-imagick/3.1.0RC2'\'' '\''--with-php-config=/usr/local/Cellar/php55/5.5.0/bin/php-config'\'''
CONFIGURE_OPTIONS=' '\''--prefix=/usr/local/Cellar/php55-imagick/3.1.0RC2'\'' '\''--with-php-config=/usr/local/Cellar/php55/5.5.0/bin/php-config'\'''
CPP='cc -E'
CPPFLAGS=''
DEFS=''
DSYMUTIL=''
ECHO='/bin/echo'
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
GREP='/usr/bin/grep'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
NMEDIT=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
RE2C='exit 0;'
SED='/usr/local/Library/ENV/4.3/sed'
SHELL='/bin/sh'
SHLIB_DL_SUFFIX_NAME='so'
SHLIB_SUFFIX_NAME='dylib'
STRIP=''
ac_ct_CC=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin12.4.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin12.4.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin12.4.0'
host_alias='x86_64-apple-darwin12.4.0'
host_cpu='x86_64'
host_os='darwin12.4.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/Cellar/php55/5.5.0'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='x86_64-apple-darwin12.4.0'
target_alias=''
target_cpu='x86_64'
target_os='darwin12.4.0'
target_vendor='apple'
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment