Skip to content

Instantly share code, notes, and snippets.

@mkotsur
Created September 13, 2011 08:00
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 mkotsur/1213379 to your computer and use it in GitHub Desktop.
Save mkotsur/1213379 to your computer and use it in GitHub Desktop.
brew install glib failed
ip212-238-53-50:~ mkotsur$ brew doctor
fatal: '/usr/local/Library/Homebrew' is outside repository
Your system is raring to brew.
ip212-238-53-50:~ mkotsur$ brew install glib
==> Downloading ftp://ftp.gnome.org/pub/gnome/sources/glib/2.28/glib-2.28.8.tar.bz2
File already downloaded in /Users/mkotsur/Library/Caches/Homebrew
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file configure.ac
patching file glib-2.0.pc.in
patching file glib/gunicollate.c
patching file glib/gi18n.h
patching file gio/xdgmime/xdgmime.c
patching file gio/gdbusprivate.c
==> ./configure --disable-rebuilds --prefix=/usr/local/Cellar/glib/2.28.8 --with-libiconv=gnu --disable-debug
######################################################################## 100.0%
==> ed - config.h < config.h.ed
==> make
make all-recursive
Making all in .
make[2]: Nothing to be done for `all-am'.
Making all in m4macros
make[2]: Nothing to be done for `all'.
Making all in glib
dtrace -C -h -s glib_probes.d -o glib_probes.h.tmp
GEN glibconfig-stamp
sed -e "s,define STAP_HAS_SEMAPHORES 1,undef STAP_HAS_SEMAPHORES," < glib_probes.h.tmp > glib_probes.h && rm -f glib_probes.h.tmp
dtrace -G -s glib_probes.d -o glib_probes.o
Usage: dtrace [-aACeFHlqSvVwZ] [-arch i386|x86_64] [-b bufsz] [-c cmd] [-D name[=def]]
[-I path] [-L path] [-o output] [-p pid] [-s script] [-U name]
[-x opt[=val]]
[-P provider [[ predicate ] action ]]
[-m [ provider: ] module [[ predicate ] action ]]
[-f [[ provider: ] module: ] func [[ predicate ] action ]]
[-n [[[ provider: ] module: ] func: ] name [[ predicate ] action ]]
[-i probe-id [[ predicate ] action ]] [ args ... ]
predicate -> '/' D-expression '/'
action -> '{' D-statements '}'
-arch Generate programs and Mach-O files for the specified architecture
-a claim anonymous tracing state
-A generate plist(5) entries for anonymous tracing
-b set trace buffer size
-c run specified command and exit upon its completion
-C run cpp(1) preprocessor on script files
-D define symbol when invoking preprocessor
-e exit after compiling request but prior to enabling probes
-f enable or list probes matching the specified function name
-F coalesce trace output by function
-h generate a header file with definitions for static probes
-H print included files when invoking preprocessor
-i enable or list probes matching the specified probe id
-I add include directory to preprocessor search path
-l list probes matching specified criteria
-L add library directory to library search path
-m enable or list probes matching the specified module name
-n enable or list probes matching the specified probe name
-o set output file
-p grab specified process-ID and cache its symbol tables
-P enable or list probes matching the specified provider name
-q set quiet mode (only output explicitly traced data)
-s enable or list probes according to the specified D script
-S print D compiler intermediate code
-U undefine symbol when invoking preprocessor
-v set verbose mode (report stability attributes, arguments)
-V report DTrace API version
-w permit destructive actions
-x enable or modify compiler and tracing options
-Z permit probe descriptions that match zero probes
make[2]: *** [glib_probes.o] Error 2
make[2]: *** Waiting for unfinished jobs....
config.status: executing glib/glibconfig.h commands
config.status: glib/glibconfig.h is unchanged
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/glib.rb#L74
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: c1e354647fd16b3fdbc075b63277529195df92af
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_REPOSITORY: /usr/local
HOMEBREW_LIBRARY_PATH: /usr/local/Library/Homebrew
Hardware: dual-core 64-bit penryn
OS X: 10.7.1
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.0
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2335
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -march=core2 -msse4.1 -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -pipe
CPPFLAGS: -I/usr/local/Cellar/libiconv/1.14/include -I/usr/local/Cellar/gettext/0.18.1.1/include
LDFLAGS: -L/usr/local/Cellar/libiconv/1.14/lib -L/usr/local/Cellar/gettext/0.18.1.1/lib
MAKEFLAGS: -j2
PKG_CONFIG_PATH: /usr/local/Cellar/libiconv/1.14/lib/pkgconfig:/usr/local/Cellar/gettext/0.18.1.1/lib/pkgconfig
Error: Failed executing: make
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/6641
https://github.com/mxcl/homebrew/issues/6868
https://github.com/mxcl/homebrew/issues/7400
Otherwise, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment