Skip to content

Instantly share code, notes, and snippets.

@d0ugal
Created August 7, 2012 20:08
Show Gist options
  • Save d0ugal/3288929 to your computer and use it in GitHub Desktop.
Save d0ugal/3288929 to your computer and use it in GitHub Desktop.
brew install glib failing.
➜ ~ brew install glib
==> Installing glib dependency: gettext
==> Downloading http://ftpmirror.gnu.org/gettext/gettext-0.18.1.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/gettext-0.18.1.1.tar.gz
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file gettext-tools/configure
patching file gettext-tools/Makefile.in
==> ./configure --disable-debug --prefix=/usr/local/Cellar/gettext/0.18.1.1 --without-included-gettext --without-included-glib --without-included-libcroco --without-included-libxml --without-emacs --without-git --without-cvs
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin12.0.0
checking host system type... x86_64-apple-darwin12.0.0
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gnulib-local/Makefile
=== configuring in gettext-runtime (/private/tmp/homebrew-gettext-0.18.1.1-4pj0/gettext-0.18.1.1/gettext-runtime)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local/Cellar/gettext/0.18.1.1' '--disable-dependency-tracking' '--disable-debug' '--without-included-gettext' '--without-included-glib' '--without-included-libcroco' '--without-included-libxml' '--without-emacs' '--without-git' '--without-cvs' 'CC=/usr/bin/clang' 'CFLAGS=-Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8' 'LDFLAGS=-L/usr/local/lib' 'CPPFLAGS=-isystem /usr/local/include -I/usr/include/libxml2' 'CXX=/usr/bin/clang++' 'CXXFLAGS=-Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8' --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ../build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/bin/clang
checking whether the C compiler works... no
configure: error: in `/private/tmp/homebrew-gettext-0.18.1.1-4pj0/gettext-0.18.1.1/gettext-runtime':
configure: error: C compiler cannot create executables
See `config.log' for more details.
configure: error: ./configure failed for gettext-runtime
config.log was copied to /Users/dougalmatthews/Library/Logs/Homebrew
==> Build Environment
HOMEBREW_VERSION: 0.9.2
HEAD: 0f19fc498714918ecd4b23cc0f22a20a16fff4b1
CPU: 8-core 64-bit ivybridge
OS X: 10.8-x86_64
Xcode: 4.4.1
CLT: 4.4.0.0.1.1249367152
X11: N/A
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.8
CPPFLAGS: -isystem /usr/local/include -I/usr/include/libxml2
LDFLAGS: -L/usr/local/lib
MAKEFLAGS: -j8
MACOSX_DEPLOYMENT_TARGET: 10.8
PKG_CONFIG_PATH: /usr/local/Library/Homebrew/pkgconfig
OBJC: /usr/bin/clang
PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/Library/Contributions/cmds
Error: Failed executing: ./configure --disable-dependency-tracking --disable-debug --prefix=/usr/local/Cellar/gettext/0.18.1.1 --without-included-gettext --without-included-glib --without-included-libcroco --without-included-libxml --without-emacs --without-git --without-cvs (gettext.rb:39)
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/13002
Otherwise, this may help you fix or report the issue:
https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist
We saved the configure log:
~/Library/Logs/Homebrew/config.log
When you report the issue please paste the config.log here:
http://gist.github.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment