Page 1 of 1

problem install 6.6.1 from source on mac tiger

Posted: 2010-04-07T10:18:06-07:00
by cbum999
Downloaded 6.6.1 (ImageMagick.tar.gz) last night. Followed instructions found in d/l (Install-mac.txt) Ok until 'make' command. I get "No targets specified and no makefile found. Stop."

ls shows 'Make.com', Makefile.am' and 'Makefile.in' in directory. Suggestions ??

TIA

Re: problem install 6.6.1 from source on mac tiger

Posted: 2010-04-07T12:43:07-07:00
by fmw42
I have no trouble installing from source on Mac OSX Tiger on my Mac Mini G4. I just installed IM 6.6.1.0 Q16 recently. Before you install from source, you need to install any delegate libraries that you might want such as libpng, libtiff, libjpg. Then download IM from ftp://ftp.imagemagick.org/pub/ImageMagick I usually take the ...tar.bz2 as it is smaller. Then decompress with Stuffit Expander. After that, it is just a matter of

./configure
make
sudo make install

Things will install in /usr/local/bin.

My configure looks like this:

./configure --enable-delegate-build --enable-shared --disable-static \
--with-modules --with-quantum-depth=16 --with-gslib --without-wmf \
--disable-silent-rules --disable-dependency-tracking \
--with-gs-font-dir=/usr/local/share/ghostscript/fonts/ --with-lqr


But if you don't have ghostscript, or lqr delegates, then you can skip the last line.

Be sure you don't have multiple versions of IM installed. Clean out the old ones.

See http://www.imagemagick.org/script/advan ... lation.php for more details

Re: problem install 6.6.1 from source on mac tiger

Posted: 2010-04-07T15:06:31-07:00
by cbum999
Thanks, I was able to get it to install eventually on my Xserve 10.4.11. However, the verify steps (IE: /opt/local/bin/identify -list font) failed with 'No such file or directory' error. And 'make check' returned 3 failed tasks:
FAIL: tests/validate-formats-in-memory.sh
FAIL: tests/validate-formats-on-disk.sh
FAIL: Magick++/tests/attributes.sh
===========================================
3 of 48 tests failed
See ./test-suite.log
Please report to http://www.imagemagick.org
===========================================
make[3]: *** [test-suite.log] Error 1
make[2]: *** [check-TESTS] Error 2
make[1]: *** [check-am] Error 2
make: *** [check] Error 2

Thanks for the link to uninstalling as I am sure I will have to reinstall to get it to work and have the features I wanted. There is no information on how to plan for the install. I would think it would be helpful for many to have a chart indicating what additional libs would be required for what features. For instance I did see where I needed ghostscript BUT it did not explain how to modify "./configure" to actually use it! I am NOT a c++ programmer, so for a web developer this has not been an easy task.

Re: problem install 6.6.1 from source on mac tiger

Posted: 2010-04-07T15:13:16-07:00
by fmw42
/opt/local/bin/identify
This means you installed from MacPorts. I had suggested you install manually so that IM identify or convert will be in /usr/local/bin.

So I am confused how you uninstalled and re-installed. If from MacPorts, then you need to install the delegates using MacPorts as well or IM won't be able to find them.

If you have multiple version of IM installed, now, then you probably are getting things confused and IM may have conflicts.

You probably also will need to have Xcode Tools installed first.

I am not a unix guru or programmer either and have no experience with MacPorts. But I got some help at first from others to do the manual install and then afterwards, just kept doing the same thing. The IM install is easy. But some delegates are hard and each may require something else to be installed before it.

Ghostscript is a complicated one to install on Mac manually. If you install from MacPorts, it may be easier. Here is what I had to do when installing manually.

Key to Install Ghostscript on Mac OS X: Install Ghostscript.Framework

(IM does not recogize the installed ghostscript delegate without the framework)

From Ghostscript docs:
ghostscript-8.61/doc/Make.htm#MacOSX


MacOS X
The unix source distribution (.tar.gz) builds fine on Darwin/MacOS X, albeit without a display device. You can generally just use the Makefile generated by ./configure or macosx.mak as your top-level makefile and get a reasonable default build. This will allow you to use Ghostscript from the command line as a BSD-layer tool to rasterize postscript and pdf to image files, and convert between the high-level formats supported by Ghostscript. See the instructions for the unix build below for details of how to customize this build.
There is also a support for building Ghostscript as a framework. This is a special encapsulated shared library format specific to MacOS X. To build the framework, copy macosx.mak to the top-level directory, rename it to makefile and issue 'make framework' from Terminal.app. This will result in a Ghostscript.framework in the sobin directory. It must be manually copied to /Library/Frameworks/ before applications can use it. You may need to create the Frameworks/ directory on some systems.
So My Install Notes:

1) do normal install
./configure
make
sudo make install

2) Follow instructions above
*copy macosx.mak from src to top level of GS source directory
*rename to Makefile
*make framework
*copy framework from sobin directory of GS source code to /Library/Frameworks
*also copy gsc from sobin directory and put in /usr/local/bin (same place as gs is located), then reboot

3) Rebuild IM as usual.




Also Magick recently wrote in viewtopic.php?f=1&t=11805

"Do you have Ghostscript installed? ImageMagick can utilize the Ghostscript library at build time if its framework is available, otherwise it uses the 'gs' command line utility to interpret Postscript. Make sure gs is in your execution path or edit delegates.xml and replace 'gs' with the absolute path of the utility, for example, /usr/local/bin/gs."

Note there are two delegates.xml files. One is in the IM source directory. But the one that likely needs editing can be found by:

convert -list delegate | grep Path:
Path: /usr/local/lib/ImageMagick-6.4.3/config/delegates.xml


However, this now is not necessary as installing gsc in /usr/local/bin seems to have done the trick (and rebooting).

Re: problem install 6.6.1 from source on mac tiger

Posted: 2010-04-09T16:31:44-07:00
by cbum999
I have a working ImageMagick install to handle my needs (TIFF and PDF support)! Many thanks. I wish I could post the exact steps I took that made it a success, but I just can't say what did it. I ended up using MacPorts though.

The first issue ( when attempting to install from source ) was my ./configure was failing ( cause I didn't know what i was doing? ) so IM was not happy.

I use MacPorts via the 'by guess by golly method'. Probably installed more than I needed. The biggest issue with the MacPorts install was I have entropy PHP 5.2.X installed. So I had a hard time with the PECL command.

Your responses did help me to better understand the overall process so you saved an old man from more gray hair ( yes I'm 55 ).

I now only have a single code base to worry about. I was using Apple Image events through a clustered mess of AJAX/CURL/Frontier/etc.

My advise for others is to READ, READ, READ before you begin.

Thanks again.