This repository has been archived by the owner. It is now read-only.

graphviz fails to build, apparently issue finding libpng12 #6645

Closed
wizard69 opened this Issue Jul 26, 2011 · 28 comments

Comments

Projects
None yet
@wizard69

I was attempting to build graphviz today and it failed. This is on a system with an install of Lion, and a fresh install of XQuartz. Xcode installed is 4.1 It is my understanding that the script should be able to find png12 itself. If not a hint as to a proper command line update would be nice.

Here is the tail end of the failed build:

xt/0.18.1.1/include -I/usr/local/Cellar/glib/2.28.7/include -I/usr/X11/include/cairo -I/usr/X11/include/pixman-1 -I/usr/X11/include -I/usr/X11/include/freetype2 -I/usr/X11/include/libpng15 -I/usr/local/Cellar/gd/2.0.36RC1/include -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvloadimage_gd.lo gvloadimage_gd.c
CC gvdevice_gd.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/gvc -I../../lib/graph -I../../lib/cdt -D_REENTRANT -I/usr/local/Cellar/pango/1.28.4/include/pango-1.0 -I/usr/local/Cellar/glib/2.28.7/include/glib-2.0 -I/usr/local/Cellar/glib/2.28.7/lib/glib-2.0/include -I/usr/local/Cellar/gettext/0.18.1.1/include -I/usr/local/Cellar/glib/2.28.7/include -I/usr/X11/include/cairo -I/usr/X11/include/pixman-1 -I/usr/X11/include -I/usr/X11/include/freetype2 -I/usr/X11/include/libpng15 -I/usr/local/Cellar/gd/2.0.36RC1/include -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvdevice_gd.lo gvdevice_gd.c
CCLD libgvplugin_gd.la
CCLD libgvplugin_gd_C.la
ld: library not found for -lpng12
collect2: ld returned 1 exit status
make[3]: *** [libgvplugin_gd.la] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/graphviz.rb#L35
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: 6a60676
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
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.1
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/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/c++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CPPFLAGS: -I/usr/X11/include
LDFLAGS: -L/usr/X11/lib
MAKEFLAGS: -j2

Error: Failed executing: make install
Please report this bug: https://github.com/mxcl/homebrew/wiki/Checklist-before-filing-a-new-issue
These existing issues may help you:
https://github.com/mxcl/homebrew/issues/#issue/5445
https://github.com/mxcl/homebrew/issues/#issue/6162

Also try:
brew doctor to check your setup for common problems.
brew missing to check installed packages for missing deps.

@korishev

This comment has been minimized.

Show comment
Hide comment
@korishev

korishev Jul 28, 2011

Homebrew doesn't look for XQuartz bu default, just the system X11.

On my upgrade install of Lion, it either removed the libpng12.dylib from the /usr/X11/lib subdirectory, or just removed the symlink. The file libpng12.0.dylib is present, however and linking to it allowed my graphviz to build.

cd /usr/X11/lib
sudo ln -s libpng12.0.dylib libpng12.dylib

worked for me, but I'm not sure if the libpng12.0.dylib will be there on a fresh install of Lion.

Homebrew doesn't look for XQuartz bu default, just the system X11.

On my upgrade install of Lion, it either removed the libpng12.dylib from the /usr/X11/lib subdirectory, or just removed the symlink. The file libpng12.0.dylib is present, however and linking to it allowed my graphviz to build.

cd /usr/X11/lib
sudo ln -s libpng12.0.dylib libpng12.dylib

worked for me, but I'm not sure if the libpng12.0.dylib will be there on a fresh install of Lion.

@mystix

This comment has been minimized.

Show comment
Hide comment
@mystix

mystix Jul 29, 2011

Contributor

Facing the same issue as @korishev.
Running Lion (upgraded from Snow Leopard) + XCode 4.1.

here's my gist of the following commands (see https://gist.github.com/1113901):
brew install -v graphviz
brew doctor
brew --config

@korishev's workaround worked for me.

Contributor

mystix commented Jul 29, 2011

Facing the same issue as @korishev.
Running Lion (upgraded from Snow Leopard) + XCode 4.1.

here's my gist of the following commands (see https://gist.github.com/1113901):
brew install -v graphviz
brew doctor
brew --config

@korishev's workaround worked for me.

@moeffju

This comment has been minimized.

Show comment
Hide comment
@moeffju

moeffju Jul 30, 2011

Ditto, Lion + Xcode 4.1, @korishev's workaround worked for me.

moeffju commented Jul 30, 2011

Ditto, Lion + Xcode 4.1, @korishev's workaround worked for me.

@andoriyu

This comment has been minimized.

Show comment
Hide comment
@andoriyu

andoriyu Jul 30, 2011

Contributor

@korishev's workaround did not work for me.

Making install in gvc
CC gvlayout.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvlayout.lo gvlayout.c
CC gvrender.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvrender.lo gvrender.c
CC gvdevice.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvdevice.lo gvdevice.c
CC gvloadimage.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvloadimage.lo gvloadimage.c
CC gvcontext.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvcontext.lo gvcontext.c
CC gvjobs.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvjobs.lo gvjobs.c
CC gvevent.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvevent.lo gvevent.c
CC gvplugin.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvplugin.lo gvplugin.c
CC gvconfig.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvconfig.lo gvconfig.c
CC gvtextlayout.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvtextlayout.lo gvtextlayout.c
CC gvusershape.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvusershape.lo gvusershape.c
make[3]: *** No rule to make target -lltdl', needed bylibgvc.la'. Stop.
make[3]: *** Waiting for unfinished jobs....
CC gvc.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvc.lo gvc.c
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/graphviz.rb#L35
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: 4e94c41
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
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.2
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/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/c++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CPPFLAGS: -I/usr/X11/include
LDFLAGS: -L/usr/X11/lib
MAKEFLAGS: -j2

Error: Failed executing: make install

Contributor

andoriyu commented Jul 30, 2011

@korishev's workaround did not work for me.

Making install in gvc
CC gvlayout.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvlayout.lo gvlayout.c
CC gvrender.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvrender.lo gvrender.c
CC gvdevice.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvdevice.lo gvdevice.c
CC gvloadimage.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvloadimage.lo gvloadimage.c
CC gvcontext.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvcontext.lo gvcontext.c
CC gvjobs.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvjobs.lo gvjobs.c
CC gvevent.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvevent.lo gvevent.c
CC gvplugin.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvplugin.lo gvplugin.c
CC gvconfig.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvconfig.lo gvconfig.c
CC gvtextlayout.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvtextlayout.lo gvtextlayout.c
CC gvusershape.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvusershape.lo gvusershape.c
make[3]: *** No rule to make target -lltdl', needed bylibgvc.la'. Stop.
make[3]: *** Waiting for unfinished jobs....
CC gvc.lo
/bin/sh ../../libtool --silent --tag=CC --mode=compile /usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/common -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DGVLIBDIR="/usr/local/Cellar/graphviz/2.28.0/lib/graphviz" -I/usr/X11/include -I/usr/local/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o gvc.lo gvc.c
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/graphviz.rb#L35
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: 4e94c41
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
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.2
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/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/c++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/cc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CPPFLAGS: -I/usr/X11/include
LDFLAGS: -L/usr/X11/lib
MAKEFLAGS: -j2

Error: Failed executing: make install

@camillol

This comment has been minimized.

Show comment
Hide comment
@camillol

camillol Jul 30, 2011

Contributor

@wizard69 just FYI, Lion's system X11 is the same version as the latest XQuartz (2.6.3).

Contributor

camillol commented Jul 30, 2011

@wizard69 just FYI, Lion's system X11 is the same version as the latest XQuartz (2.6.3).

@janl

This comment has been minimized.

Show comment
Hide comment
@janl

janl Jul 31, 2011

Contributor

What @andoriyu said.

Contributor

janl commented Jul 31, 2011

What @andoriyu said.

@janl

This comment has been minimized.

Show comment
Hide comment
@janl

janl Jul 31, 2011

Contributor

More info here:

http://graphviz.org/mantisbt/view.php?id=2109 (applying this patch in a new def patches section doesn't help my install)
https://bugs.gentoo.org/show_bug.cgi?id=265859

Adding --disable-ltdl leads me to the paste below. Seem this is a little more b0rked than it seems on the surface.

[...]
Making install in cmd
cd .. && /bin/sh ./config.status cmd/Makefile
config.status: creating cmd/Makefile
Making install in dot
cd ../.. && /bin/sh ./config.status cmd/dot/Makefile depfiles
config.status: creating cmd/dot/Makefile
config.status: executing depfiles commands
CC dot_builtins-dot.o
/usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -I../../lib/gvc -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DDEMAND_LOADING=1 -isystem /Users/jan/Work/homebrew/include -I/usr/X11/include -I/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o dot_builtins-dot.o test -f 'dot.c' || echo './'dot.c
CC dot_builtins-dot_builtins.o
/usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -I../../lib/gvc -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DDEMAND_LOADING=1 -isystem /Users/jan/Work/homebrew/include -I/usr/X11/include -I/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o dot_builtins-dot_builtins.o test -f 'dot_builtins.c' || echo './'dot_builtins.c
CCLD dot_builtins
test -z "/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin" || ../../config/install-sh -c -d "/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin"
test -z "/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/man/man1" || ../../config/install-sh -c -d "/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/man/man1"
/usr/bin/install -c -m 644 dot.1 osage.1 patchwork.1 '/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/man/man1'
test -z "/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/graphviz/doc/pdf" || ../../config/install-sh -c -d "/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/graphviz/doc/pdf"
/bin/sh ../../libtool --mode=install /usr/bin/install -c dot_builtins '/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin'
/usr/bin/install -c -m 644 dot.1.pdf osage.1.pdf patchwork.1.pdf '/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/graphviz/doc/pdf'
make install-data-hook
(cd /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/man/man1; for i in neato.1 twopi.1 fdp.1 circo.1 sfdp.1; do rm -f $i; ln -s dot.1 $i; done;)
(cd /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/graphviz/doc/pdf; for i in neato.1.pdf twopi.1.pdf fdp.1.pdf circo.1.pdf sfdp.1.pdf; do rm -f $i; ln -s dot.1.pdf $i; done;)
libtool: install: /usr/bin/install -c .libs/dot_builtins /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin/dot_builtins
make install-exec-hook
(cd /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin; if test -x dot; then for i in neato twopi fdp circo osage patchwork sfdp; do rm -f $i; ln -s dot $i; done; fi;)
if test "x" = "x"; then if test -x /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin/dot; then if test -x /sbin/ldconfig; then /sbin/ldconfig 2>/dev/null; fi; /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin/dot -c; else /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin/dot_static -c; fi; fi
/bin/sh: /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin/dot_static: No such file or directory
make[5]: *** [install-exec-hook] Error 127
make[4]: *** [install-exec-am] Error 2
make[3]: *** [install-am] Error 2
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2

Contributor

janl commented Jul 31, 2011

More info here:

http://graphviz.org/mantisbt/view.php?id=2109 (applying this patch in a new def patches section doesn't help my install)
https://bugs.gentoo.org/show_bug.cgi?id=265859

Adding --disable-ltdl leads me to the paste below. Seem this is a little more b0rked than it seems on the surface.

[...]
Making install in cmd
cd .. && /bin/sh ./config.status cmd/Makefile
config.status: creating cmd/Makefile
Making install in dot
cd ../.. && /bin/sh ./config.status cmd/dot/Makefile depfiles
config.status: creating cmd/dot/Makefile
config.status: executing depfiles commands
CC dot_builtins-dot.o
/usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -I../../lib/gvc -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DDEMAND_LOADING=1 -isystem /Users/jan/Work/homebrew/include -I/usr/X11/include -I/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o dot_builtins-dot.o test -f 'dot.c' || echo './'dot.c
CC dot_builtins-dot_builtins.o
/usr/bin/cc -DHAVE_CONFIG_H -I. -I../.. -I../../lib/common -I../../lib/gvc -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt -DDEMAND_LOADING=1 -isystem /Users/jan/Work/homebrew/include -I/usr/X11/include -I/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/include -O3 -march=core2 -msse4.1 -w -pipe -fno-common -Wall -c -o dot_builtins-dot_builtins.o test -f 'dot_builtins.c' || echo './'dot_builtins.c
CCLD dot_builtins
test -z "/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin" || ../../config/install-sh -c -d "/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin"
test -z "/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/man/man1" || ../../config/install-sh -c -d "/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/man/man1"
/usr/bin/install -c -m 644 dot.1 osage.1 patchwork.1 '/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/man/man1'
test -z "/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/graphviz/doc/pdf" || ../../config/install-sh -c -d "/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/graphviz/doc/pdf"
/bin/sh ../../libtool --mode=install /usr/bin/install -c dot_builtins '/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin'
/usr/bin/install -c -m 644 dot.1.pdf osage.1.pdf patchwork.1.pdf '/Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/graphviz/doc/pdf'
make install-data-hook
(cd /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/man/man1; for i in neato.1 twopi.1 fdp.1 circo.1 sfdp.1; do rm -f $i; ln -s dot.1 $i; done;)
(cd /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/share/graphviz/doc/pdf; for i in neato.1.pdf twopi.1.pdf fdp.1.pdf circo.1.pdf sfdp.1.pdf; do rm -f $i; ln -s dot.1.pdf $i; done;)
libtool: install: /usr/bin/install -c .libs/dot_builtins /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin/dot_builtins
make install-exec-hook
(cd /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin; if test -x dot; then for i in neato twopi fdp circo osage patchwork sfdp; do rm -f $i; ln -s dot $i; done; fi;)
if test "x" = "x"; then if test -x /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin/dot; then if test -x /sbin/ldconfig; then /sbin/ldconfig 2>/dev/null; fi; /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin/dot -c; else /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin/dot_static -c; fi; fi
/bin/sh: /Users/jan/Work/homebrew/Cellar/graphviz/2.28.0/bin/dot_static: No such file or directory
make[5]: *** [install-exec-hook] Error 127
make[4]: *** [install-exec-am] Error 2
make[3]: *** [install-am] Error 2
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2

@korishev

This comment has been minimized.

Show comment
Hide comment
@korishev

korishev Jul 31, 2011

@andoriyu, @jani you are getting a different error than @wizard69 and I got. We both had an issue with libpng, you appear to have a problem with libltdl, as the line

make[3]: *** No rule to make target -lltdl', needed bylibgvc.la'. Stop.

would suggest. libltdl is a library provided by libtool, for working with dynamic libraries, and the gvc makefile is complaining that it doesn't know how to build it.

On my system, it is located in /usr/lib, as /usr/lib/libltdl.7.dylib, and has several symlinks ( libltdl.dylib, libltdl.7.2.2.dylib ), as well as an archive file ( libltdl.a ). Can you see if you have that on your system?

Beyond that, I don't have much else to go on, as I didn't get that same error. You may want to open a separate bug report and see if anyone else can help.

korishev

@andoriyu, @jani you are getting a different error than @wizard69 and I got. We both had an issue with libpng, you appear to have a problem with libltdl, as the line

make[3]: *** No rule to make target -lltdl', needed bylibgvc.la'. Stop.

would suggest. libltdl is a library provided by libtool, for working with dynamic libraries, and the gvc makefile is complaining that it doesn't know how to build it.

On my system, it is located in /usr/lib, as /usr/lib/libltdl.7.dylib, and has several symlinks ( libltdl.dylib, libltdl.7.2.2.dylib ), as well as an archive file ( libltdl.a ). Can you see if you have that on your system?

Beyond that, I don't have much else to go on, as I didn't get that same error. You may want to open a separate bug report and see if anyone else can help.

korishev

@janl

This comment has been minimized.

Show comment
Hide comment
@janl

janl Jul 31, 2011

Contributor

@korishev thanks for the hint, I'm on a blurry yak shaving mission and things looked similar enough to add to this.

To me the error message suggests that some make target has gone awry and that -ltdl somehow slipped into be targeted as a proper make target itself, rather than a cc/libtool option (but I may read this wrong)

As far as /usr/lib/libtdl* goes, I have none of that.

Contributor

janl commented Jul 31, 2011

@korishev thanks for the hint, I'm on a blurry yak shaving mission and things looked similar enough to add to this.

To me the error message suggests that some make target has gone awry and that -ltdl somehow slipped into be targeted as a proper make target itself, rather than a cc/libtool option (but I may read this wrong)

As far as /usr/lib/libtdl* goes, I have none of that.

@andoriyu

This comment has been minimized.

Show comment
Hide comment
@andoriyu

andoriyu Jul 31, 2011

Contributor

@korishev I just decided to not create another issue for same Formula.

ls |grep ltd
libltdl.7.2.2.dylib
libltdl.7.dylib
libltdl.dylib

Contributor

andoriyu commented Jul 31, 2011

@korishev I just decided to not create another issue for same Formula.

ls |grep ltd
libltdl.7.2.2.dylib
libltdl.7.dylib
libltdl.dylib

@korishev

This comment has been minimized.

Show comment
Hide comment
@korishev

korishev Jul 31, 2011

@jani

I'm sad to admit that I have no idea where mine came from, it is completely reasonable to believe that it came from the graphviz build process itself.

I would think it comes from Apple, as part of the XCode development kit. I also have copies of that lib in /Developer/SDKs and /Xcode4/SDKs, with the closest apparent match ( both claim to be 7.2.2 ) in /Developer/SDKs/MacOSX10.7.sdk/usr/lib/libltdl.7.dylib, but the md5 sums don't match. Upon closer inspection, the SDK version is just the library stub, while the /usr/lib/ version contains the actual library.

Sorry I'm not much help here, but maybe someone more familiar with how homebrew and Lion interact knows for sure?

korishev

@jani

I'm sad to admit that I have no idea where mine came from, it is completely reasonable to believe that it came from the graphviz build process itself.

I would think it comes from Apple, as part of the XCode development kit. I also have copies of that lib in /Developer/SDKs and /Xcode4/SDKs, with the closest apparent match ( both claim to be 7.2.2 ) in /Developer/SDKs/MacOSX10.7.sdk/usr/lib/libltdl.7.dylib, but the md5 sums don't match. Upon closer inspection, the SDK version is just the library stub, while the /usr/lib/ version contains the actual library.

Sorry I'm not much help here, but maybe someone more familiar with how homebrew and Lion interact knows for sure?

korishev

@carstenschwede

This comment has been minimized.

Show comment
Hide comment
@carstenschwede

carstenschwede Aug 6, 2011

@korishev
Thanks for the idea with /Developer/SDKs/MacOSX10.7.sdk/usr/lib/, I found 3.1.4 in /Developer/SDKs/MacOSX10.7.sdk/usr/lib/freeradius

@jani
Try symlinking the missing libltdl*-files present in /Developer/SDKs/MacOSX10.7.sdk/usr/lib/ and /Developer/SDKs/MacOSX10.7.sdk/usr/lib/freeradius to /usr/lib.
Not the cleanest way to go, but it worked for me.

Edit: Seems like the archive version is critical?

sudo ln -sf /Developer/SDKs/MacOSX10.7.sdk/usr/lib/libltdl.a /usr/lib/libltdl.a

@korishev
Thanks for the idea with /Developer/SDKs/MacOSX10.7.sdk/usr/lib/, I found 3.1.4 in /Developer/SDKs/MacOSX10.7.sdk/usr/lib/freeradius

@jani
Try symlinking the missing libltdl*-files present in /Developer/SDKs/MacOSX10.7.sdk/usr/lib/ and /Developer/SDKs/MacOSX10.7.sdk/usr/lib/freeradius to /usr/lib.
Not the cleanest way to go, but it worked for me.

Edit: Seems like the archive version is critical?

sudo ln -sf /Developer/SDKs/MacOSX10.7.sdk/usr/lib/libltdl.a /usr/lib/libltdl.a
@ingmar

This comment has been minimized.

Show comment
Hide comment
@ingmar

ingmar Aug 15, 2011

I've had a look at the libpng problem. Turns out graphviz's ./configure got the erroneous -lpng12 from gdlib-config (at least on my system - probably same for anyone who upgraded to Lion):

$ gdlib-config --libs
-lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -liconv

To fix, rebuild libgd after upgrading to Lion: brew remove gd && brew install gd - now the right libpng is used:

$ gdlib-config --libs
-lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng -lz -liconv

Afterwards brew install graphviz worked flawlessly. This probably means anything that depends on libpng should be rebuilt after upgrading to Lion.

ingmar commented Aug 15, 2011

I've had a look at the libpng problem. Turns out graphviz's ./configure got the erroneous -lpng12 from gdlib-config (at least on my system - probably same for anyone who upgraded to Lion):

$ gdlib-config --libs
-lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -liconv

To fix, rebuild libgd after upgrading to Lion: brew remove gd && brew install gd - now the right libpng is used:

$ gdlib-config --libs
-lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng -lz -liconv

Afterwards brew install graphviz worked flawlessly. This probably means anything that depends on libpng should be rebuilt after upgrading to Lion.

@djui

This comment has been minimized.

Show comment
Hide comment
@djui

djui Aug 17, 2011

@janl I had the same problem (libltdl) and @carstenschwede 's tip did it for me:

sudo ln -sf /Developer/SDKs/MacOSX10.7.sdk/usr/lib/libltdl.a /usr/lib/libltdl.a

djui commented Aug 17, 2011

@janl I had the same problem (libltdl) and @carstenschwede 's tip did it for me:

sudo ln -sf /Developer/SDKs/MacOSX10.7.sdk/usr/lib/libltdl.a /usr/lib/libltdl.a

@wizard69 wizard69 closed this Aug 17, 2011

@wizard69

This comment has been minimized.

Show comment
Hide comment
@wizard69

wizard69 Aug 17, 2011

ingmar;

I followed your directions and that did correct the problem on my machine. Thank you for your efforts here. Unfortunately due to other issues, some self inflicted, I'm in the process of reinstalling brew completely. In any event I do believe you corrected the problem.

For your information, on my new brew install graphviz gave me:
==> make install
/usr/local/Cellar/graphviz/2.28.0: 372 files, 9.5M, built in 2.9 minutes
Not bad for a heavy loaded machine.

In any event I'd like to thank everyone that responded, I know it has been a few days since I've responded but I've been side tracked with a broken leg and other issues.

ingmar;

I followed your directions and that did correct the problem on my machine. Thank you for your efforts here. Unfortunately due to other issues, some self inflicted, I'm in the process of reinstalling brew completely. In any event I do believe you corrected the problem.

For your information, on my new brew install graphviz gave me:
==> make install
/usr/local/Cellar/graphviz/2.28.0: 372 files, 9.5M, built in 2.9 minutes
Not bad for a heavy loaded machine.

In any event I'd like to thank everyone that responded, I know it has been a few days since I've responded but I've been side tracked with a broken leg and other issues.

@kevmoo

This comment has been minimized.

Show comment
Hide comment
@kevmoo

kevmoo Sep 14, 2011

Contributor

brew remove gd && brew install gd worked for me as well.

Not sure if we need another bug or what...but the fact that one has to come digging here to figure out what the install broke...could be better

Contributor

kevmoo commented Sep 14, 2011

brew remove gd && brew install gd worked for me as well.

Not sure if we need another bug or what...but the fact that one has to come digging here to figure out what the install broke...could be better

@mikl

This comment has been minimized.

Show comment
Hide comment
@mikl

mikl Sep 17, 2011

Contributor

This should be reopened. This is still a problem.

Contributor

mikl commented Sep 17, 2011

This should be reopened. This is still a problem.

@ingmar

This comment has been minimized.

Show comment
Hide comment
@ingmar

ingmar Sep 17, 2011

Maybe a check could be added to brew doctor or to a new version of the gdlib recipe (although this will likely affect other libraries linked against libpng as well).

ingmar commented Sep 17, 2011

Maybe a check could be added to brew doctor or to a new version of the gdlib recipe (although this will likely affect other libraries linked against libpng as well).

@wizard69

This comment has been minimized.

Show comment
Hide comment
@wizard69

wizard69 Sep 17, 2011

It built for me the last time I tried. I have XQuartz installed too.

What should be noted here though is that I did upgrade to Lion. Note an upgrade not a fresh install. In doing so I did completely delete all of my HomeBrew installation as I believe parts of the system where corrupted. I also thought that it might make sense to build with all the new tools and libraries. This really shouldn't have impacted anything as my home-brew install isn't massive to begin with.

Totally unrelated but why doesn't HomeBrew support XQuartz? I've found that it is well worth the effort to keep XQuartz up to date.

Sent from my iPad

On Sep 17, 2011, at 12:55 PM, Mikkel Høghreply@reply.github.com wrote:

This should be reopened. This is still a problem.

Reply to this email directly or view it on GitHub:
mxcl#6645 (comment)

It built for me the last time I tried. I have XQuartz installed too.

What should be noted here though is that I did upgrade to Lion. Note an upgrade not a fresh install. In doing so I did completely delete all of my HomeBrew installation as I believe parts of the system where corrupted. I also thought that it might make sense to build with all the new tools and libraries. This really shouldn't have impacted anything as my home-brew install isn't massive to begin with.

Totally unrelated but why doesn't HomeBrew support XQuartz? I've found that it is well worth the effort to keep XQuartz up to date.

Sent from my iPad

On Sep 17, 2011, at 12:55 PM, Mikkel Høghreply@reply.github.com wrote:

This should be reopened. This is still a problem.

Reply to this email directly or view it on GitHub:
mxcl#6645 (comment)

@bfoust

This comment has been minimized.

Show comment
Hide comment
@bfoust

bfoust Sep 23, 2011

Still an issue under OS X Lion.

I solved it using:

      cd /usr/local && git reset --hard HEAD
      sudo chown -R <username>:staff  /usr/local

now the following worked:
brew install graphviz

bfoust commented Sep 23, 2011

Still an issue under OS X Lion.

I solved it using:

      cd /usr/local && git reset --hard HEAD
      sudo chown -R <username>:staff  /usr/local

now the following worked:
brew install graphviz

@travisbell

This comment has been minimized.

Show comment
Hide comment
@travisbell

travisbell Oct 17, 2011

cd /usr/X11/lib
sudo ln -s libpng12.0.dylib libpng12.dylib

Worked for me.

cd /usr/X11/lib
sudo ln -s libpng12.0.dylib libpng12.dylib

Worked for me.

@jeffbski

This comment has been minimized.

Show comment
Hide comment
@jeffbski

jeffbski Nov 18, 2011

On snow leopard, graphviz would install using

brew install graphviz

However when I would run it to try to generate any output like pdf, png, tiff it would segmentation fault.

After reading the above ideas, I tried installing gd (which was not previously installed), and that fixed it.

So apparently graphviz has a dependency on gd that is not reflected in the formula??

On snow leopard, graphviz would install using

brew install graphviz

However when I would run it to try to generate any output like pdf, png, tiff it would segmentation fault.

After reading the above ideas, I tried installing gd (which was not previously installed), and that fixed it.

So apparently graphviz has a dependency on gd that is not reflected in the formula??

@stefanwille

This comment has been minimized.

Show comment
Hide comment
@stefanwille

stefanwille Nov 28, 2011

I just stumbled across the same issue.
This is on Lion, latest homebrew stable.

$ ls /usr/X11/lib/libpng*
/usr/X11/lib/libpng.3.dylib /usr/X11/lib/libpng.dylib /usr/X11/lib/libpng12.0.dylib /usr/X11/lib/libpng15.15.dylib /usr/X11/lib/libpng15.dylib

$ brew install graphviz
....
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/graphviz.rb#L43
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: c9a680b
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.2
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.1
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2335
Clang: 2.1-163.7.1
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 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CPPFLAGS: -I/usr/X11/include
LDFLAGS: -L/usr/X11/lib
MAKEFLAGS: -j2

Error: Failed executing: make install
These existing issues may help you:
mxcl#6679
Otherwise, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
stefan@Stefan-Willes-MacBook-Pro ~$ o-common -Wall -c -o gvdevice_gd.lo gvdevice_gd.c
-bash: o-common: command not found
CCLD libgvplugin_gd_C.la
CCLD libgvplugin_gd.la
ld: library not found for -lpng12
collect2: ld returned 1 exit status
make[3]: *** [libgvplugin_gd.la] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1

I just stumbled across the same issue.
This is on Lion, latest homebrew stable.

$ ls /usr/X11/lib/libpng*
/usr/X11/lib/libpng.3.dylib /usr/X11/lib/libpng.dylib /usr/X11/lib/libpng12.0.dylib /usr/X11/lib/libpng15.15.dylib /usr/X11/lib/libpng15.dylib

$ brew install graphviz
....
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/graphviz.rb#L43
==> Environment
HOMEBREW_VERSION: 0.8
HEAD: c9a680b
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.2
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.1
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2335
Clang: 2.1-163.7.1
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 -w -pipe
CXXFLAGS: -O3 -march=core2 -msse4.1 -w -pipe
CPPFLAGS: -I/usr/X11/include
LDFLAGS: -L/usr/X11/lib
MAKEFLAGS: -j2

Error: Failed executing: make install
These existing issues may help you:
mxcl#6679
Otherwise, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue
stefan@Stefan-Willes-MacBook-Pro ~$ o-common -Wall -c -o gvdevice_gd.lo gvdevice_gd.c
-bash: o-common: command not found
CCLD libgvplugin_gd_C.la
CCLD libgvplugin_gd.la
ld: library not found for -lpng12
collect2: ld returned 1 exit status
make[3]: *** [libgvplugin_gd.la] Error 1
make[2]: *** [install-recursive] Error 1
make[1]: *** [install-recursive] Error 1

@bowsersenior

This comment has been minimized.

Show comment
Hide comment
@bowsersenior

bowsersenior Jan 4, 2012

I'm having this same problem. Tried every suggest solution in this thread but I still can't install graphviz.

This definitely should be re-opened.

I'm having this same problem. Tried every suggest solution in this thread but I still can't install graphviz.

This definitely should be re-opened.

@dkam

This comment has been minimized.

Show comment
Hide comment
@dkam

dkam Jan 10, 2012

brew remove gd && brew install gd worked for me.

dkam commented Jan 10, 2012

brew remove gd && brew install gd worked for me.

@arsduo

This comment has been minimized.

Show comment
Hide comment
@arsduo

arsduo Jan 29, 2012

Same thing is happening to me. This should be reopened, happy to provide any info I can.

arsduo commented Jan 29, 2012

Same thing is happening to me. This should be reopened, happy to provide any info I can.

@salzig

This comment has been minimized.

Show comment
Hide comment
@salzig

salzig Aug 1, 2012

just as side note: hadn't even installed gd. brew install gd && brew install graphviz works fine for me.

salzig commented Aug 1, 2012

just as side note: hadn't even installed gd. brew install gd && brew install graphviz works fine for me.

@sinm

This comment has been minimized.

Show comment
Hide comment
@sinm

sinm Feb 10, 2013

brew install gd worked for me. Also i've removed all traces of graphviz that was installed under root and then brew link graphviz

sinm commented Feb 10, 2013

brew install gd worked for me. Also i've removed all traces of graphviz that was installed under root and then brew link graphviz

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.