Failed install of 6.6.3-1 on Ubuntu 10.04

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
KonfuseKitty
Posts: 18
Joined: 2010-07-16T15:54:28-07:00
Authentication code: 8675308

Failed install of 6.6.3-1 on Ubuntu 10.04

Post by KonfuseKitty »

I had a functioning IM 6.6.2-6 running on my Ubuntu 10.04 that I had compiled from source and wanted to upgrade to 6.6.3-1 in the same way. I followed the instructions, downloading the archive and running:

$ tar xvfz ImageMagick.tar.gz
$ cd ImageMagick-6.6.3-1
$ ./configure
$ make
$ sudo make install

When I try to run an IM command, I get this error:

Code: Select all

convert: error while loading shared libraries: libMagickCore.so.4: cannot open shared object file: No such file or directory
Opening config.log, I see this error first:

Code: Select all

configure:4880: checking dependency style of gcc
configure:4990: result: gcc3
configure:5011: checking how to run the C preprocessor
configure:5042: gcc -E  conftest.c
configure:5042: $? = 0
configure:5056: gcc -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:5056: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ImageMagick"
| #define PACKAGE_TARNAME "ImageMagick"
| #define PACKAGE_VERSION "6.6.3"
| #define PACKAGE_STRING "ImageMagick 6.6.3"
| #define PACKAGE_BUGREPORT "http://www.imagemagick.org"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
configure:5081: result: gcc -E
configure:5101: gcc -E  conftest.c
configure:5101: $? = 0
configure:5115: gcc -E  conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:5115: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ImageMagick"
| #define PACKAGE_TARNAME "ImageMagick"
| #define PACKAGE_VERSION "6.6.3"
| #define PACKAGE_STRING "ImageMagick 6.6.3"
| #define PACKAGE_BUGREPORT "http://www.imagemagick.org"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #include <ac_nonexistent.h>
...and then later...

Code: Select all

configure:5391: checking for unistd.h
configure:5391: gcc -c -g -O2  conftest.c >&5
configure:5391: $? = 0
configure:5391: result: yes
configure:5404: checking minix/config.h usability
configure:5404: gcc -c -g -O2  conftest.c >&5
conftest.c:52:26: error: minix/config.h: No such file or directory
configure:5404: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ImageMagick"
| #define PACKAGE_TARNAME "ImageMagick"
| #define PACKAGE_VERSION "6.6.3"
| #define PACKAGE_STRING "ImageMagick 6.6.3"
| #define PACKAGE_BUGREPORT "http://www.imagemagick.org"
| #define PACKAGE_URL ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| /* end confdefs.h.  */
...and this "confdefs.h" error keeps repeating through the script.

Any ideas for a fix?
KonfuseKitty
Posts: 18
Joined: 2010-07-16T15:54:28-07:00
Authentication code: 8675308

Re: Failed install of 6.6.3-1 on Ubuntu 10.04

Post by KonfuseKitty »

I've just run 'make uninstall' and it seems I'm back to a functioning IM 6.6.2-6. Thank God for that!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Failed install of 6.6.3-1 on Ubuntu 10.04

Post by magick »

As root, type ldconfig /usr/local/lib.
KonfuseKitty
Posts: 18
Joined: 2010-07-16T15:54:28-07:00
Authentication code: 8675308

Re: Failed install of 6.6.3-1 on Ubuntu 10.04

Post by KonfuseKitty »

magick wrote:As root, type ldconfig /usr/local/lib.
I'm a little nervous now... Could you tell me what this will do and when to run it. I've uninstalled 6.6.3, and again have a functioning 6.6.2. I've looked in /usr/local/lib and it contains the ImageMagick-6.6.3 folder with subfolders:

Code: Select all

ImageMagick-6.6.3
  -config
    (Empty)
  -modules-Q16
    -coders
      (Empty)
    -filters
      (Empty)
I don't want to make things worse so please let me know if I should delete this folder first, and whether the ldconfig command should be run before or after I install 6.6.3 again.

Many thanks for your help! :)
Post Reply