Page 1 of 1

Installation via Homebrew leads to no formats

Posted: 2009-10-04T23:32:29-07:00
by k776
I've done a 'brew install imagemagick' ( http://github.com/mxcl/homebrew ). Everything installed fine. the rmagick gem installed fine (so headers and such are in the right place).

However, when I run I check installed formats, none are installed.

Code: Select all

% identify -list format                         
   Format  Module    Mode  Description
-------------------------------------------------------------------------------

* native blob support
r read support
w write support
+ support for multiple images
Homebrew installed into /opt/local/Cellar/imagemagick/[version] and then symlinked into /opt/local (which is in my path).

As you can see by the following, it appears to work:

Code: Select all

% convert --version
Version: ImageMagick 6.5.6-5 2009-10-05 Q8 OpenMP http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
But without formats, rmagick is failing. The closest thing to formats I've seen are the files in lib/ImageMagick/modules-Q8/coders . I've symlinked this directory into places like /usr/lib, but still no formats show up.

Any help?

Re: Installation via Homebrew leads to no formats

Posted: 2009-10-05T09:13:13-07:00
by magick
Use the --prefix configure script option to install ImageMagick is a location other than /usr/local. It needs to know where its installed so it can find its configuration files and modules. See http://www.imagemagick.org/script/advan ... lation.php.

Re: Installation via Homebrew leads to no formats

Posted: 2009-10-05T12:16:09-07:00
by k776
It already is. Here is how it's compiled by Homebrew (with a few changes to try and get this working). It has prefix and ghostscript font dir, all modules etc etc. According to all install guides, it should be working.

Code: Select all

$ ./configure --enable-shared --enable-static --with-modules --without-magick-plus-plus --disable-dependency-tracking --prefix=/opt/local --with-gs-font-dir=/opt/local/share/ghostscript/fonts --without-perl --with-fontconfig --with-quantum-depth=8
[snip] (configures fine, shows jpeg module as 'yes' for compiling)

$ make install 
[snip] installs fine to /opt/local
I've done a ton of googling, but no answers. This still returns blank:

Code: Select all

identify -list format

Re: Installation via Homebrew leads to no formats

Posted: 2009-10-05T12:48:30-07:00
by magick
Did you check permissions on the ImageMagick home folder? Type
  • convert -debug configure logo: null:
The debugging output reveals where ImageMagick is looking for its configuration files and modules.

Re: Installation via Homebrew leads to no formats

Posted: 2009-10-05T13:27:49-07:00
by k776

Code: Select all

% convert -debug configure logo: null:
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/Cellar/imagemagick/6.5.6-8/share/ImageMagick/config/coder.xml"
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/Cellar/imagemagick/6.5.6-8/lib/ImageMagick/config/coder.xml"
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/Cellar/imagemagick/6.5.6-8/share/doc/ImageMagick/coder.xml"
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/Cellar/imagemagick/6.5.6-8/share/ImageMagick/coder.xml"
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/Users/kieran/.magick/coder.xml"
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "coder.xml"
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: coder.c/LoadCoderList/641/Configure
  Loading coder configuration file "/opt/local/Cellar/imagemagick/6.5.6-8/share/ImageMagick/config/coder.xml" ...
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/Cellar/imagemagick/6.5.6-8/share/ImageMagick/config/delegates.xml"
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/Cellar/imagemagick/6.5.6-8/lib/ImageMagick/config/delegates.xml"
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/Cellar/imagemagick/6.5.6-8/share/doc/ImageMagick/delegates.xml"
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/opt/local/Cellar/imagemagick/6.5.6-8/share/ImageMagick/delegates.xml"
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "/Users/kieran/.magick/delegates.xml"
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: configure.c/GetConfigureOptions/528/Configure
  Searching for configure file: "delegates.xml"
2009-10-06T09:26:26+13:00 0:00.000 0.000u 6.5.6 Configure convert[66696]: delegate.c/LoadDelegateList/1194/Configure
  Loading delegate configuration file "/opt/local/Cellar/imagemagick/6.5.6-8/lib/ImageMagick/config/delegates.xml" ...
2009-10-06T09:26:26+13:00 0:00.010 0.000u 6.5.6 Configure convert[66696]: utility.c/ExpandFilenames/867/Configure
  Command line: convert {-debug} {configure} {logo:} {null:}
2009-10-06T09:26:26+13:00 0:00.010 0.010u 6.5.6 Configure convert[66696]: locale.c/LoadLocaleList/779/Configure
  Loading locale configure file "/opt/local/Cellar/imagemagick/6.5.6-8/lib/ImageMagick/config/locale.xml" ...
2009-10-06T09:26:26+13:00 0:00.010 0.010u 6.5.6 Configure convert[66696]: locale.c/LoadLocaleList/779/Configure
  Loading locale configure file "/opt/local/Cellar/imagemagick/6.5.6-8/lib/ImageMagick/config/english.xml" ...
convert: unable to open image `logo:': No such file or directory @ blob.c/OpenBlob/2480.
convert: missing an image filename `null:' @ convert.c/ConvertImageCommand/2822.

% ls /opt/local/Cellar/imagemagick/6.5.6-8/lib/ImageMagick/config/
configure.xml        delegates.xml        english.xml          francais.xml         locale.xml           policy.xml           type-ghostscript.xml type-windows.xml     type.xml

Re: Installation via Homebrew leads to no formats

Posted: 2009-10-05T13:30:25-07:00
by k776
Here is a recursive listing of where imagemagick installed to.

Code: Select all

% ls -R *                                      
AUTHORS   ChangeLog LICENSE   README

bin:
Magick-config     MagickWand-config animate           composite         convert           identify          mogrify           stream
MagickCore-config Wand-config       compare           conjure           display           import            montage

include:
ImageMagick

include/ImageMagick:
magick wand

include/ImageMagick/magick:
ImageMagick.h   cache-view.h    compare.h       display.h       gem.h           locale_.h       methods.h       policy.h        resample.h      statistic.h     utility.h
MagickCore.h    cache.h         composite.h     distort.h       geometry.h      log.h           mime.h          prepress.h      resize.h        stream.h        version.h
PreRvIcccm.h    cipher.h        compress.h      draw.h          hashmap.h       magic.h         module.h        profile.h       resource_.h     string_.h       widget.h
animate.h       client.h        configure.h     effect.h        histogram.h     magick-config.h monitor.h       property.h      segment.h       threshold.h     xml-tree.h
annotate.h      coder.h         constitute.h    enhance.h       identify.h      magick-type.h   montage.h       quantize.h      semaphore.h     timer.h         xwindow.h
api.h           color.h         decorate.h      exception.h     image.h         magick.h        option.h        quantum.h       shear.h         token.h
artifact.h      colormap.h      delegate.h      fourier.h       layer.h         matrix.h        paint.h         random_.h       signature.h     transform.h
blob.h          colorspace.h    deprecate.h     fx.h            list.h          memory_.h       pixel.h         registry.h      splay-tree.h    type.h

include/ImageMagick/wand:
MagickWand.h      compare.h         conjure.h         deprecate.h       drawing-wand.h    import.h          magick-property.h magick_wand.h     montage.h         pixel-view.h      stream.h
animate.h         composite.h       convert.h         display.h         identify.h        magick-image.h    magick-wand.h     mogrify.h         pixel-iterator.h  pixel-wand.h

lib:
ImageMagick           libMagickCore.2.dylib libMagickCore.a       libMagickCore.dylib   libMagickWand.2.dylib libMagickWand.a       libMagickWand.dylib   pkgconfig

lib/ImageMagick:
config     modules-Q8

lib/ImageMagick/config:
configure.xml        delegates.xml        english.xml          francais.xml         locale.xml           policy.xml           type-ghostscript.xml type-windows.xml     type.xml

lib/ImageMagick/modules-Q8:
coders  filters

lib/ImageMagick/modules-Q8/coders:
art.a        cin.a        dib.a        gif.a        icon.a       magick.a     mpc.a        otb.a        pdf.a        ps.a         rla.a        sun.a        ttf.a        viff.a       xcf.a
art.so       cin.so       dib.so       gif.so       icon.so      magick.so    mpc.so       otb.so       pdf.so       ps.so        rla.so       sun.so       ttf.so       viff.so      xcf.so
avi.a        cip.a        dng.a        gradient.a   info.a       map.a        mpeg.a       palm.a       pict.a       ps2.a        rle.a        svg.a        txt.a        wbmp.a       xpm.a
avi.so       cip.so       dng.so       gradient.so  info.so      map.so       mpeg.so      palm.so      pict.so      ps2.so       rle.so       svg.so       txt.so       wbmp.so      xpm.so
avs.a        clip.a       dot.a        gray.a       inline.a     mat.a        mpr.a        pattern.a    pix.a        ps3.a        scr.a        tga.a        uil.a        wmf.a        xps.a
avs.so       clip.so      dot.so       gray.so      inline.so    mat.so       mpr.so       pattern.so   pix.so       ps3.so       scr.so       tga.so       uil.so       wmf.so       xps.so
bmp.a        cmyk.a       dpx.a        hald.a       ipl.a        matte.a      msl.a        pcd.a        plasma.a     psd.a        sct.a        thumbnail.a  url.a        wpg.a        xwd.a
bmp.so       cmyk.so      dpx.so       hald.so      ipl.so       matte.so     msl.so       pcd.so       plasma.so    psd.so       sct.so       thumbnail.so url.so       wpg.so       xwd.so
braille.a    cut.a        ept.a        histogram.a  jp2.a        meta.a       mtv.a        pcl.a        png.a        pwp.a        sfw.a        tiff.a       uyvy.a       x.a          ycbcr.a
braille.so   cut.so       ept.so       histogram.so jp2.so       meta.so      mtv.so       pcl.so       png.so       pwp.so       sfw.so       tiff.so      uyvy.so      x.so         ycbcr.so
cals.a       dcm.a        fax.a        hrz.a        jpeg.a       miff.a       mvg.a        pcx.a        pnm.a        raw.a        sgi.a        tile.a       vicar.a      xbm.a        yuv.a
cals.so      dcm.so       fax.so       hrz.so       jpeg.so      miff.so      mvg.so       pcx.so       pnm.so       raw.so       sgi.so       tile.so      vicar.so     xbm.so       yuv.so
caption.a    dds.a        fits.a       html.a       label.a      mono.a       null.a       pdb.a        preview.a    rgb.a        stegano.a    tim.a        vid.a        xc.a
caption.so   dds.so       fits.so      html.so      label.so     mono.so      null.so      pdb.so       preview.so   rgb.so       stegano.so   tim.so       vid.so       xc.so

lib/ImageMagick/modules-Q8/filters:
analyze.a  analyze.so

lib/pkgconfig:
ImageMagick.pc MagickCore.pc  MagickWand.pc  Wand.pc

share:
ImageMagick man

share/ImageMagick:
config

share/ImageMagick/config:
coder.xml      colors.xml     log.xml        magic.xml      mime.xml       sRGB.icm       thresholds.xml

share/man:
man1

share/man/man1:
ImageMagick.1       MagickCore-config.1 Wand-config.1       compare.1           conjure.1           display.1           import.1            montage.1
Magick-config.1     MagickWand-config.1 animate.1           composite.1         convert.1           identify.1          mogrify.1           stream.1

Re: Installation via Homebrew leads to no formats

Posted: 2009-10-07T02:14:00-07:00
by k776
The author of homebrew found the issue in the compiling (was stripping .la files apparently).

Thanks for the support.