Incompatible libpng version in application and library
Posted: 2009-10-09T03:58:35-07:00
Hi all,
Im trying to install ImageMagick and RMagick on an Ubuntu Intrepid system. I followed the tutorial here for the most part of it http://www.randycullom.com/chatterbo...ling_imag.html.
ImageMagick compiled fine but im getting the following error when i try to convert a png file.
/usr/local/bin/convert logo: logo.png
convert: Incompatible libpng version in application and library `logo.png\\\'.
I found this link which is on the same issue http://www.imagemagick.org/discourse...t=6810&start=0.
I found out the following...
1. There are 2 folders libpng,libpng12 in /usr/include. Both contain two files - png.h and pngconf.h - and both are versions 1.2.27. The same files are also in /usr/include which carry version number 1.2.27.
2. png.h and pngconf.h also exist in /usr/local/include but these files carry version 1.0.6
3. This is the configure statement i used for Imagemagick
./configure --enable-lzw=yes --enable-shared=yes --disable-static --without-perl --with-modules --without-magick-plus-plus --with-gs-font-dir=/usr/local/share/ghostscript/fonts
I also tried uninstalling ImageMagick by running sudo make uninstall and then configuring (using the above configure statement) and making IM again. Although the compiling was successful, im still getting the png error.
How can I get ImageMagick to work correctly for png? Im sure you can see that im a beginner. Please explain as much as you can.
Thanks!
Vinay.
P.S - Im also using the Paperclip plugin with Rails to resize image attachements and when i try to upload an attachment, it gives me this error \\\"/tmp/stream20091009-30531-1949n2t-0 is not recognized by the \\\'identify\\\' command.\\\". In case its relevant.
Im trying to install ImageMagick and RMagick on an Ubuntu Intrepid system. I followed the tutorial here for the most part of it http://www.randycullom.com/chatterbo...ling_imag.html.
ImageMagick compiled fine but im getting the following error when i try to convert a png file.
/usr/local/bin/convert logo: logo.png
convert: Incompatible libpng version in application and library `logo.png\\\'.
I found this link which is on the same issue http://www.imagemagick.org/discourse...t=6810&start=0.
I found out the following...
1. There are 2 folders libpng,libpng12 in /usr/include. Both contain two files - png.h and pngconf.h - and both are versions 1.2.27. The same files are also in /usr/include which carry version number 1.2.27.
2. png.h and pngconf.h also exist in /usr/local/include but these files carry version 1.0.6
3. This is the configure statement i used for Imagemagick
./configure --enable-lzw=yes --enable-shared=yes --disable-static --without-perl --with-modules --without-magick-plus-plus --with-gs-font-dir=/usr/local/share/ghostscript/fonts
I also tried uninstalling ImageMagick by running sudo make uninstall and then configuring (using the above configure statement) and making IM again. Although the compiling was successful, im still getting the png error.
How can I get ImageMagick to work correctly for png? Im sure you can see that im a beginner. Please explain as much as you can.
Thanks!
Vinay.
P.S - Im also using the Paperclip plugin with Rails to resize image attachements and when i try to upload an attachment, it gives me this error \\\"/tmp/stream20091009-30531-1949n2t-0 is not recognized by the \\\'identify\\\' command.\\\". In case its relevant.