latest OSX binary distribution 6.3.8 seems incomplete?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
nefilim

latest OSX binary distribution 6.3.8 seems incomplete?

Post by nefilim »

[peter@nefilim bin]$ pwd
/Users/peter/downloads/ImageMagick-6.3.8/bin
[peter@nefilim bin]$ ./convert
./convert: error: `/Users/peter/downloads/ImageMagick-6.3.8/bin/.libs/convert' does not exist
This script is just a wrapper for convert.
See the libtool documentation for more information.
[peter@nefilim bin]$ ls -ld .libs
ls: .libs: No such file or directory

Am I missing something ?

Thanks
Peter
Tim

Re: latest OSX binary distribution 6.3.8 seems incomplete?

Post by Tim »

I agree that the latest distribution (installed via macports) is not functioning properly. I have a brand new laptop and installed ImageMagick 6.3.8-2 onto Leopard. And get the same error after a command-line 'convert -v' stating:

/opt/local/bin/convert: error: `/opt/local/bin/.libs/convert' does not exist
This script is just a wrapper for convert.
See the libtool documentation for more information.


I checked for a .libs directory in the opt/local/bin directory--none exists. Without that convert never was installed, and that is why the 'convert -v' command fails.
I had installed 6.3.7-1 a few days ago via macports on my desktop (running 10.4.11) where it worked perfectly. The previously mention .lib is a new directory, that wasn't installed with the earlier 6.3.7-1 distribution. I suspect this distribution needs a little tweak to get it working properly.
Thanks,
Tim
Tim

Re: latest OSX binary distribution 6.3.8 seems incomplete?

Post by Tim »

I tried several attempts at fixing the newest version of ImageMagick to get it working on Leopard--still no luck. Not sure what is going on here. But for sure the macport version is not installing correctly.

Here is a script (slightly modified from: http://www.aldenta.com/2007/11/26/insta ... ment-11834) that can install the 3.7.2 version on Leopard (with dependent files/programs/fonts). It works on Leopard. To use it save it as whatever_name.sh, then from the command line:
> chmod u+x whatever_name.sh
>export PATH="$PATH:/path_to_directory_for_whatever_name.sh"
>whatever_name.sh

Hope that helps,
Tim

script as follows:

#!/bin/sh
curl -O http://download.savannah.gnu.org/releas ... 3.5.tar.gz
tar xzvf freetype-2.3.5.tar.gz
cd freetype-2.3.5
./configure --prefix=/usr/local
make
sudo make install
cd ..

curl -O http://superb-east.dl.sourceforge.net/s ... 23.tar.bz2
tar jxvf libpng-1.2.23.tar.bz2
cd libpng-1.2.23
./configure --prefix=/usr/local
make
sudo make install
cd ..

curl -O http://www.ijg.org/files/jpegsrc.v6b.tar.gz
tar xzvf jpegsrc.v6b.tar.gz
cd jpeg-6b
ln -s `which glibtool` ./libtool
export MACOSX_DEPLOYMENT_TARGET=10.5
./configure --enable-shared --prefix=/usr/local
make
sudo make install
cd ..

curl -O ftp://ftp.remotesensing.org/libtiff/tiff-3.8.2.tar.gz
tar xzvf tiff-3.8.2.tar.gz
cd tiff-3.8.2
./configure --prefix=/usr/local
make
sudo make install
cd ..

curl -O http://superb-east.dl.sourceforge.net/s ... 8.4.tar.gz
tar xzvf libwmf-0.2.8.4.tar.gz
cd libwmf-0.2.8.4
make clean
./configure
make
sudo make install
cd ..

curl -O http://www.littlecms.com/lcms-1.17.tar.gz
tar xzvf lcms-1.17.tar.gz
cd lcms-1.17
make clean
./configure
make
sudo make install
cd ..

curl -O http://superb-east.dl.sourceforge.net/s ... .61.tar.gz
tar zxvf ghostscript-8.61.tar.gz
cd ghostscript-8.61/
./configure --prefix=/usr/local
make
sudo make install
cd ..

curl -O http://mirror.cs.wisc.edu/pub/mirrors/g ... .11.tar.gz
tar zxvf ghostscript-fonts-std-8.11.tar.gz
sudo mv fonts /usr/local/share/ghostscript

curl -O ftp://ftp.surfnet.nl/pub/ImageMagick/Im ... 7-1.tar.gz
tar xzvf ImageMagick-6.3.7-1.tar.gz
cd ImageMagick-6.3.7
export CPPFLAGS=-I/usr/local/include
export LDFLAGS=-L/usr/local/lib
./configure --prefix=/usr/local --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --with-gs-font-dir=/usr/local/share/ghostscript/fonts
make
sudo make install
cd ..
rmagick
Posts: 245
Joined: 2006-03-16T17:30:48-07:00
Location: Durham, NC, USA

Re: latest OSX binary distribution 6.3.8 seems incomplete?

Post by rmagick »

I'm not sure that posting here is useful. According to the portfile, the MacPorts ImageMagick port is maintained by ryandesign AT macports DOT org. I've communicated with ryandesign before and found him to be quite agreeable. Perhaps you should email him directly.
nefilim

Re: latest OSX binary distribution 6.3.8 seems incomplete?

Post by nefilim »

I was able to install 6.3.5 using fink after fiddling a bit with X11 on Leopard, see http://nefilim.wordpress.com/2008/02/14 ... n-leopard/
willbarrow

Re: latest OSX binary distribution 6.3.8 seems incomplete?

Post by willbarrow »

Hi,
I used the instructions at http://blog.modp.com/2007/08/compiling- ... using.html to install ImageMagick 6.3.8 on Leopard using Mac Ports and have since had the same problems mentioned in this thread. I'm very new to ImageMagick but want to get off to the right start with a good installation on Leopard that will allow me do basic image manipulation on a php site I'm building.

The posts here sound promising, but as I am not very familiar with Terminal and just started with ImageMagick, can someone please suggest what to do in layman's terms. I just don't want to try following someone's instructions here word for word to find out that I omitted some inferred step and be left off worse than I started.

Thanks in advance!
Tim

Re: latest OSX binary distribution 6.3.8 seems incomplete?

Post by Tim »

Hey Will,
My instructions above work for installing the penultimate imagemagick release on a factory installed leopard mac. The only inferred steps are that whatever_name = whatever you call name your file, and the path_to_whatever_name is going to look like /Users/Will/Desktop i.e. the directory you saved the file to (if you don't know the basics of unix paths you should spend 10-15 minutes reading about them--oh, and you can drag directories to the terminal and the terminal will change the directory to a path!). The http addresses in the script must be complete--when I pasted the file into this bulletin it truncated the middle of the url on some of the file links. You may have to look at the http source or click on them to figure out what the full url is to download the files. I understand the hesitation to venture into uncharted territory--but you will be okay. Nothing worthwhile in life can be accomplished without taking at least a little risk, right?
Tim
willbarrow

Re: latest OSX binary distribution 6.3.8 seems incomplete?

Post by willbarrow »

Thanks for the reply. I guess the "inferred steps" I'm worried about are those getting me from where I am now to a state that I can run the 3.7.2 script above (or whichever appropriate action). I actually already tried following the advice of undees above hoping it applied to me:

Code: Select all

sudo port uninstall ImageMagick
then

Code: Select all

sudo port -k install ImageMagick
so at this point, I'm not exactly sure what I have accomplished or how to test it. Should I use [Tim's] 3.7.2 script now or do I need to uninstall something first for a clean install? Does my use of MacPorts on the previous install affect anything now (first time using MacPorts as well)?

Thanks again for any advice you can give.
Tim

Re: latest OSX binary distribution 6.3.8 seems incomplete?

Post by Tim »

Assuming there were no errors reported during the macports install, I imagine you are installed. Here is how to check to be sure. At the command line type:

convert -version

Version: ImageMagick 6.3.7 02/01/08 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC


convert -v

Usage: convert [options ...] file [ [options ...] file ...] [options ...] file

Image Settings:
-adjoin join images into a single multi-image file
-affine matrix affine transform matrix
-alpha option activate, deactivate, reset, or set the alpha channel
-antialias remove pixel-aliasing
-authenticate value decrypt image with this password...


If those commands work, then you have installed imagemagick and you are ready to roll.
willbarrow

Re: latest OSX binary distribution 6.3.8 seems incomplete?

Post by willbarrow »

Tim wrote:Assuming there were no errors reported during the macports install, I imagine you are installed. Here is how to check to be sure. At the command line type:

convert -version

Version: ImageMagick 6.3.7 02/01/08 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC


convert -v

Usage: convert [options ...] file [ [options ...] file ...] [options ...] file

Image Settings:
-adjoin join images into a single multi-image file
-affine matrix affine transform matrix
-alpha option activate, deactivate, reset, or set the alpha channel
-antialias remove pixel-aliasing
-authenticate value decrypt image with this password...


If those commands work, then you have installed imagemagick and you are ready to roll.
I just entered convert -v and was returned with:


Version: ImageMagick 6.3.8 02/23/08 Q8 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC

Usage: convert [options ...] file [ [options ...] file ...] [options ...] file

Image Settings:
-adjoin join images into a single multi-image file
-affine matrix affine transform matrix
-alpha option activate, deactivate, reset, or set the alpha channel
-antialias remove pixel-aliasing...


At the risk of sounding stupid, does this mean I am running the latest version but not experiencing any of the problems mentioned by others above?? Should I run the script to install 3.7.2, or am I good to go?

Thanks again.
Post Reply