Page 1 of 1
ImageMagick Unix execution path
Posted: 2007-02-11T18:17:27-07:00
by bennettphoto
I'm a Unix neophyte and having problems with using ImageMagick in OS 10.4 and the Bash shell in Terminal. I can only execute "convert" using the full path name to the bin directory.
I don't know if I have correctly set:
export PATH; PATH="$HOME/ImageMagick/bin:$PATH"
export MAGICK_HOME="$HOME/ImageMagick-6.3.2"
export DYLD_LIBRARY_PATH="$HOME/ImageMagick-6.3.2/lib"
My path to ImageMagick is:
/usr/local/src/ImageMagick-6.3.2/
I'd be grateful for some advice as I've spent several days trying to get this software working.
Thank you,
PB
Re: ImageMagick Unix execution path
Posted: 2007-02-11T19:53:22-07:00
by anthony
Try adding /usr/local/src/ImageMagick-6.3.2/ to the 'PATH' environment variable.
That tells BASH where to look for commands that have no '/' in them.
Re: ImageMagick Unix execution path
Posted: 2007-02-12T05:09:02-07:00
by bennettphoto
Thanks. Now Bash recognizes the "convert" command, though I had to add /bin to your suggestion.
My Bash .profile is now set:
HOME="/usr/local/"
export MAGICK_HOME="/usr/local/src/ImageMagick-6.3.2"
export PATH; PATH="$MAGICK_HOME/bin:$PATH"
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/src/ImageMagick-6.3.2/bin"
export PATH
The following command comes up with an error "No such file or directory" for logo1.jpg
convert logo1.jpg -rotate 45 logo2.jpg
I presume that this is a permissions problem. Using Terminal is academic for me I want to use PHP5 and MagickWand for PHP, Next step to install MagickWand. I hope it is not as difficult as this has been!
Thanks for the advice.
B
Re: ImageMagick Unix execution path
Posted: 2007-02-18T21:13:19-07:00
by anthony
More likly the image is not in your current directory. You can add a path to the file name, or change directories to its location.
I suggest you get a book on basic unix, just to give you the concepts you need. The simplist UNIX book should be fine and most libraries should have them.
You could even try a basic UNIX tutorial on the web. There are lots of them!
All in all this is not a IM problem.