Could not install imagemagick-ruby186 #10

Closed
nburwell opened this Issue May 29, 2012 · 2 comments

Comments

Projects
None yet
3 participants

Tried installing an older version of image magic

> brew tap homebrew/versions
> brew install imagemagick-ruby186

Installed the dependencies okay, but failed on the final make install of imagemagick:
Downloading http://image_magick.veidrodis.com/image_magick/ImageMagick-6.5.9-8.tar.bz2

################################################################## 100.0%

==> ./configure --without-maximum-compile-warnings --disable-osx-universal-binary --without-perl --prefix=/usr/local/Cellar/imagemagick-ruby186/6.5.9-8 --enable-shared --disable-static --with-modules
==> make install

....

/usr/X11/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
coders/png.c:2053:27: error: incomplete definition of type 'struct png_info_def'
((int) ping_info->color_type == PNG_COLOR_TYPE_PALETTE))
~~~~~~~~~^
/usr/X11/include/png.h:692:16: note: forward declaration of 'struct png_info_def'
typedef struct png_info_def png_info;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[1]: *** [coders/coders_png_la-png.lo] Error 1
make: *** [install] Error 2

==> Build Environment
CPU: 8-core 64-bit sandybridge
MacOS: 10.7.4-x86_64
Xcode: 4.3.2
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -w -pipe -march=native -Qunused-arguments -O3
CXXFLAGS: -w -pipe -march=native -Qunused-arguments -O3
CPPFLAGS: -I/usr/X11/include
LDFLAGS: -L/usr/X11/lib

Error: Failed executing: make install (imagemagick-ruby186.rb:72)

> brew doctor
Your system is raring to brew.
Contributor

jacknagel commented Dec 9, 2012

So this probably needs a dep on an older version of libpng.

samueljohn was assigned Mar 19, 2013

Contributor

samueljohn commented Mar 19, 2013

Bingo, Jack!

@minrk minrk pushed a commit to minrk/homebrew-versions that referenced this issue Oct 30, 2014

@nanoxd nanoxd Merge pull request #10 from Cottser/timemachinescheduler-beta
Add TimeMachineScheduler beta
c6ef359

@homebrew-version-migration-bot homebrew-version-migration-bot added a commit to HaraldNordgren/homebrew-versions-reference that referenced this issue Dec 3, 2016

@homebrew-version-migration-bot homebrew-version-migration-bot Migrated 464f7d1: 'imagemagick-ruby186: Need old libpng. X11 optional
Simplify formula by removing now unused support methods.
Using `build.with?`.

Fixes #63 by adding optional `depends_on :x11`.
Fixes #10 by depending on old libpng12'
9154664
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment