[SUMMARY Has anyone successfully installed imagemagick?

From: Dermot Paikkos (dermot@sciencephoto.com)
Date: Mon May 27 2002 - 10:26:51 EDT


This has been a testing installation.

The main cause of my wows was the use of the installed jpeg library
at /usr/opt/java118/alpha/native_threads/libjpeg.so
There is also a link to this file in /usr/shlib.
I renamed the libjpeg.so and removed the symlink ( i think you
should do it in that order). Asked for another configure. !!DAMM!!,
still not support for Jpeg. Problems with jerror.h...etc. A closer
inspection of the readme.txt says:

If you want to install the IJG library itself, for
use in compiling other programs besides ours, then
you need to put the four include files
        jpeglib.h jerror.h jconfig.h jmorecfg.h
into your include-file directory, and put the
library file libjpeg.a
(extension may vary depending on system) wherever
library files go.
If you generated a Makefile with "configure", it
will do what it thinks
is the right thing if you say
        make install-lib

So a make install-lib copied the files into the correct place. That was
the jpeg support bit correct. I had to rm -r the
/usr/local/share/ImageMagick folder, make clean, and configure,
make then make install. My test file was converted (with icc profiles
intact). There was an error but I'll save that for another mailing list.

I need to thank the following:
Oisin McGuinness, David Ross, Olle Eriksson and Peter Stern for their
advice on making sure that the correct jpeg library was used. Most
opted to rename the file and put it back after. Oisin supported this
view but pointed out that you can modify the LD_LIBRARY_PATH and
_RLD_ROOT environment variables which should have the same
effect.

What else did I learn? To read the install docs carefully, especially
when configure and make reports failures. That I am scared of C and
should perhaps take a short course, read a book (any
recommendations?). That this is a wonderful mailing list that hasn't
failed me yet.

Thanx.
Dp.

=============== original message =======
Hi Managers,

 Sys stuff: Compaq Alpha DS10 without VGA, Tru 64 5.1
  cc: Compaq C V6.3-027, ImageMagick 5.4.4, jpeg-6
  installed.

I have been trying to install ImageMagick but keep hitting problems. I
need to be able to convert TIFF image files into JPEG (and keep the
icc profiles intact). ImageMagick seems the only app I can use that
will do this.

The jpeg libraries seem to be installed correctly. I can use cjpeg to
convert bmp's to jpegs. However whenever I configure ImageMagick
it
tells me that jpeg support failed. I have appended part of the log
below. The 2 problem files seem to be /usr/local/include/jpeglib.h
and
/usr/local/include/jconfig.h.

I out of my depth with C, although I am not afraid to add a semi
colon
here and there to remove errors, I can't fathom this error out.

The PLATFORM.txt says:

======================
Digital Unix and OSF/1
  Problem:
    Digital Unix provides an outdated JPEG shared library as part of
        
the system.
  Indications:
    ImageMagick fails to link.
  Solution:
    Ensure that the JPEG library you installed is used. Be sure to
    install the JPEG library as a shared library.
============================

I am not sure how to do this. Installing GNU libtool proved impossible
as well and I didn't want to keep adding other libraries to a
production system. I hope this isn't off topic. If anyone has had some
experience with installing ImageMagick, I would appreciate some
help.

Thanx.
Dp.

============= CONFIG.LOG ================
configure:19116: checking jpeglib.h usability
configure:19125: cc -c -g -D_REENTRANT -I/usr/local/include
conftest.c >&5
cc: Warning: /usr/local/include/jconfig.h, line 12: The redefinition
of the macro "HAVE_STDLIB_H" conflicts with a current definition
because the replacement lists differ. The redefinition is now in
effect. (macroredef) #define HAVE_STDLIB_H ----------------------^
configure:19128: $? = 0 configure:19131: test -s conftest.o
configure:19134: $? = 0 configure:19143: result: yes
configure:19147:
checking jpeglib.h presence configure:19154: cc -E -D_REENTRANT
-I/usr/local/include conftest.c cc: Warning:
/usr/local/include/jconfig.h, line 12: The redefinition of the macro
"HAVE_STDLIB_H" conflicts with a current definition because the
replacement lists differ. The redefinition is now in effect.
(macroredef) #define HAVE_STDLIB_H ----------------------^
configure:19160: $? = 0 configure:19178: result: yes
configure:19196:
checking for jpeglib.h configure:19203: result: yes configure:19214:
checking for jpeg_read_header in -ljpeg configure:19247: cc -o
conftest -g -D_REENTRANT - I/usr/local/include -L/usr/l ocal/lib
conftest.c -ljpeg -lXext -lXt -lSM -lICE -lX11 -lpthread -lm >&5
ld: Unresolved: jpeg_read_header configure:19250: $? = 1 configure:
failed program was: #line 19221 "configure" #include "confdefs.h"
========================

==== Part of the configure file in question (with line numbers)=

 19214 echo "$as_me:$LINENO: checking for jpeg_read_header in
-ljpeg" >&5
 19215 echo $ECHO_N "checking for jpeg_read_header in -ljpeg...
$ECHO_C" >&6
 19216 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set;
then
 19217 echo $ECHO_N "(cached) $ECHO_C" >&6
 19218 else
 19219 ac_check_lib_save_LIBS=$LIBS
 19220 LIBS="-ljpeg $LIBS"
 19221 cat >conftest.$ac_ext <<_ACEOF
 19222 #line $LINENO "configure"
 19223 #include "confdefs.h"

------- End of forwarded message -------
~~
Dermot Paikkos * dermot@sciencephoto.com
Network Administrator @ Science Photo Library
Phone: 0207 432 1100 * Fax: 0207 286 8668



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:42 EDT