Page 1 of 1

installation issues.

Posted: 2010-01-03T13:18:35-07:00
by scanjar
I am trying to upload some pics to a friends gallery. This ImageMagick software is required by Gallery to do an upload from my MacBook Pro. Because of the lack of any real documentation on this software, I am having an awful time with the install.

Q1: I downloaded MacPorts as the instructions said. The next step was to enter the following: " $magick> sudo port install ImageMagick." I couldn't find an MacPorts.App to run this command in. I reinstalled MacPorts and still can't find an .app file to enter this command. I then tried Terminal but there were no instructions on how to create the $magick prompt and there are no instructions on where to find it.I tried to run it anyway and got a request for a password. There was no password provided, so I tried my system password. I got this error:
---> Computing dependencies for ImageMagickError: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path: '/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at its MacPorts configuration time location, did you move it?
Before reporting a bug, first run the command again with the -d flag to get complete output.

What instructions are incorrect/missing?

Q2. I gave up on MacPorts and went to the step by step. I downloaded ImageMagick-x86_64-apple-darwin10.2.0.tar.gz (I am running 10.5.8). Step 2 was to create a directory. I double clicked on the file name to unzip it then dragged it into the app directory. I cannot find any interface in the extract directory that would let me type in the line commands in the rest of the directions. Where is the missing interface?

Q3. I decided to try Terminal. Every time I use it, I long for a DOS prompt. First, I don't have any $magick prompt and there are no instructions on how to create it. Where are the instructions?

Q4. I gave up and decided to go another website to figure out how to change then directory to the Applications/ImageMagick-6.5.8/bin. I then ran the export commands as indicated. When I tried to run convert, I get a "-bash: convert: command not found". The convert application is in the directory.

Does anyone have better instructions on how to install ImageMagick?
Thanks!!

Re: installation issues.

Posted: 2010-01-03T15:57:52-07:00
by fmw42
1) download the ImageMagick source code from ftp://ftp.imagemagick.org/pub/ImageMagick
2) decompress it using stuffit or some other tool to get the ImageMagick folder
3) put the folder where ever you want in your home directory

4) download any delegate libraries that you want to have IM use (such as jpg, png, tif, gif) from http://www.imagemagick.org/download/delegates/ (or get more current versions by googling for them)
5) decompress them and put them again somewhere in your home directory
6) cd to each directory and follow the installation instructions in the INSTALL file per the next step
7) Open the terminal application and for each delegate type (typically ./configure, then make, then sudo make install, waiting for each to finish with no errors)
8 ) Make sure there are no errors or fix the errors. Sometimes one delegate will need some other delegate before it can be installed

9) open the terminal application, if not already open
10) cd to the ImageMagick folder
11) type ./configure , make and sudoe make install waiting for each to finish with no errors
12) once finished type convert -version to see what version you have
13) then type convert -list configure to see what DELEGATES IM recongnizes

14) all of the above will be found then in /usr/local/bin

Hope this helps.

see
http://www.imagemagick.org/download/www ... .html#unix
http://www.imagemagick.org/script/advan ... lation.php

You might be better off using MacPorts as you can do it all in fewer steps, but all the delegates need to be installed via MacPorts also.

Search the archives as someone else recently had trouble installing on Mac and ended up installing with MacPorts and shows his commands. (I have always installed from scratch).

Re: installation issues.

Posted: 2010-01-03T17:18:03-07:00
by scanjar
Thanks so much for your reply and your help! This whole thing has wasted most of my day today.
When I got to your step 6, I opened up these install file for ImageMagic and started into more problems. Look for the ******************* below for my comments:

On a side note, All of this seems crazy to upload some files, you know? In facebook, there is a java interface with iPhoto. Why can't it be that simple? I had to download Gallery Remote, which required ImageMagick, which requires Fink, a developers toolkit, jpg delegates, maybe more delegates and something called a symbolic link, all installed in a terminal session.
Why isn't it a simple addin at best and an .app at worst?
I find it difficult to believe that all Mac users go through this...
Windows is starting to look good again......
;-)
Sherri


IMac OS X-specific Build instructions

Perform these steps as an administrator or with the sudo command: ********************How can I tell if I am an admin? I can't find sudo. Is it an app?

* Install Fink. The default setup creates a /sw folder on your main hard ********************I couldn't find anything called Fink in the install directory
* drive. Make sure /sw/bin is in your path. ********************how to I set the path?
* Install the latest Xcode from Apple. ******************** why to I have to download a whole developer toolkit to run an add-in?
* Create a symbolic link in /Developer/SDKs/MacOSX10.4u.sdk/ to /sw: ************************I don't know what a symbolic link is nor how to create it.

cd /Developer/SDKs/MacOSX10.4u.sdk
ln -s sw /sw

* Use Fink, or FinkCommander to install any delegate libraries you
* require, for example:

fink install libjpeg

As a regular user or administrator:

* Download the ImageMagick source distribution.
* Unpack and change into the top-level ImageMagick directory:

tar xvfz ImageMagick-6.3.3-0.tar.gz
cd ImageMagick-6.3.3

* Choose an architecture and set your CFLAGS environment variable. Here we
* set CFLAGS for an Intel build:

export CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk/ -arch i386 -I/sw/include/" **************my Max OS is 10.5.8. Do I just change the numbers in this line?

* Set your LDFLAGS environment variable to:

export
LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk/,-L/sw/lib/"

* Configure ImageMagick: ************************************************************I have no idea what this entire section is telling me.

./configure --prefix=/sw --with-quantum-depth=16 \
--disable-dependency-tracking --with-x=yes \
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib \
--without-perl

* Build ImageMagick:

make

* Install ImageMagick:

sudo make install

* To test the ImageMagick GUI, start X11 and in a new shell and type:

display -display :0

Re: installation issues.

Posted: 2010-01-03T17:55:23-07:00
by scanjar
Rather than keeping on this road, I am going to explore other options.
There is no way it should be this hard!
Thanks for your help!!

Re: installation issues.

Posted: 2010-01-03T18:04:45-07:00
by fmw42
The IM notes used the older FINK install rather than MacPorts. the latter is simpler. However, my notes were to install manually without either FINK or MacPorts.

The instructions are simply go to the terminal, cd to the IM folder. type in the terminal ./configure, when that finished type make, when that finishes type sudo make install. Sudo is a terminal command (superuser do) to avoid having to be admin or root. It simply asks for your login password to be sure you can proceed.

Note the $Magick> prompt is just an example. Your terminal will give you a prompt for your own user. Mine looks like: freds-mac-mini:~ fred$ (which is what I get by default or after I type $HOME. Yours will reference you own home directory.
________________________


IM comes with Binary installs, also. So you don't need to install all the delegates nor install IM in such depth.

see http://www.imagemagick.org/script/binar ... php#macosx and just follow the instructions there. Unfortunately, they only have a Mac Binary for Snow Leopard.

if you go this route, you may want to look at my notes when I first installed from binary on Tiger. see viewtopic.php?f=1&t=10442

______________________

Unfortunately I am not familiar with uploading to some persons picture site nor why you have to have Gallery or IM to do so. IM is an image processing package that has nothing to do with uploading. Seems to me that picture site should have its own upload form. Sorry I cannot help in this regard. What is the picture site that needs Gallery and IM?

I don't know if this is the same Gallery you refer to: http://gallery.menalto.com/requirements

A brief overview of the requirements of Gallery 1 and Gallery 2:
Platform - UNIX (BSD, Linux, ...) or Windows
Webserver - Apache, Microsoft IIS, Zeus, ...
PHP - PHP version 4.3.0 or greater (Gallery 1.x requires PHP 4.1.0 or greater), PHP safe_mode must be turned off
Image Processing Library - In order to automatically generate thumbnails and resized versions of your photos, Gallery requires either ImageMagick or NetPBM. Gallery 2 additionally supports GD
Database (Gallery 2 only) - MySQL 3.x, 4.x or 5.x, PostgreSQL 7.x or 8.x, Oracle 9i or 10g, DB2 8.2, MS SQL Server 2005 (Gallery 1.x does NOT require a database)

But IM is only needed to make thumbnails and do other processing. If you just want to upload exactly what you have then you should be able to do it without IM, just using Gallery. By the way, NetPBM should be on your Mac by default.