-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
ImageMagick package missing PNG? #14325
Comments
I guess it depends upon XQuartz being installed. That's lame. #2415 |
It shouldn't. If XQuartz isn't installed, libpng should be installed as a dependency automatically. |
libpng is installed but it still doesn't compile with png support. I rather not install XQuartz. What can I do to help? :) |
ping @MikeMcQuaid |
Could be a bottle issue. Did you do |
I tried |
Try I've been out of the loop for a couple of months, so some improvements on this front could have occurred that enabled the re-bottling of ImageMagick---but this looks like the same old issue. |
https://github.com/mxcl/homebrew/wiki/Bug-Fixing-Checklist Please gist your |
And |
brew doctor | jist brew --config | jist
|
Ok, this breaks if |
Not sure what to do about that other than a caveat or forceful linking (if you don't have XQuartz is should be linked). |
I have xquartz installed and I still get this issue. Brew doctor says raring to brew.
--build-from-source worked for me too, yea @Sharpie. |
@bronson Can you try and do |
@MikeMcQuaid That solved the issue for me. |
@jacknagel @Sharpie I guess I need to add some code to make the X11 dependencies get linked automatically when we've got no XQuartz? |
And also this is probably borked if you have XQuartz. |
I thought that was covered by |
Yep, should be. The problem is, I guess, if people already have it installed from before we added that and it isn't linked. Also wondering if this demonstrates that the optionally depend on XQuartz experiment doesn't really work as it isn't in the default library path lookup so won't work for bottles like this. |
Before As far as XQuartz with bottles, it is problematic. A while ago I was thinking about a writing special formula that installs symlinks to stuff in /{usr,opt}/X11. But that is fragile. |
Yeh, sounds like a bad link. Given the number of downloads this has compared to reports I think it must be a fairly niche issue. With XQuartz I'm wondering if we just only depend on it for the stuff that actually needs X11 and not try and be clever and use it's libpng if it's around. Should be an easy fix. |
Yeah, I don't really see any other way around the issue. |
It will certainly make things less confusing. |
Close? |
I'll close this when I push a commit to properly fix. |
Should be fixed by e6647d3. Basically this will ignore XQuartz on Mountain Lion for stuff like |
Just a note on this, I still had to include the --build-from-source flag when installing the imagemagick recipe to get it working. I'm on 10.8 and have XQuartz installed. I tried installing homebrew's libpng recipe first, but it kegs when XQuartz is found. |
Ah, ok, thanks. |
Tried another fix in 8eb5a07. Can you test? Thanks! |
That seems to have done the trick! Thanks. |
XQuartz isn't added to the default library paths so if something is linked against a Homebrew libpng then it doesn't work against the XQuartz libpng. The CLT provides X11 on Lion so don't request users install XQuartz if it isn't needed on Mountain Lion. Fixes Homebrew#14325.
XQuartz isn't added to the default library paths so if something is linked against a Homebrew libpng then it doesn't work against the XQuartz libpng. The CLT provides X11 on Lion so don't request users install XQuartz if it isn't needed on Mountain Lion. Fixes Homebrew#14325.
Thanks a lot for these hints. I had issues with Paperclip (a Ruby Gem), and running Running
Thank you! |
I'm on Mac OS X Mavericks and hit this problem with PNG support not enabled. I tried the suggestion to use the --build-from-source option, but kept getting a compilation failure. Running
I was tearing my hair out trying to solve this problem. I re-installed libpng and for good measure built that from source, too.
This didn't do anything. I eventually stumbled upon a random thread (https://bugs.launchpad.net/kicad/+bug/1285317) which advised Not having any other options, I tried this and it worked. I re-ran install with --build-from-source and it completed successfully. Hope this helps spare someone else some time. |
@shedd You saved my bacon! thanks |
Strangely, none of the "easy" fixes here worked. Ultimately, I had to brew install imagemagick --build-from-source I'm running Mavericks. Weird. |
identify source/logo.png
identify: unable to load module
/usr/local/Cellar/imagemagick/6.7.7-6/lib/ImageMagick/modules-Q16/coders/png.la': file not found @ error/module.c/OpenModule/1278. identify: no decode delegate for this image format
source/logo.png' @ error/constitute.c/ReadImage/544.identify -list format
https://gist.github.com/55e1814cb3a009affffe
No PNG in formats.
The text was updated successfully, but these errors were encountered: