Page 1 of 1

SOLVED: Installation error on 'make install'

Posted: 2011-08-13T16:06:36-07:00
by diegocaprioli
Hello,

I'm having problems installing Image Magik. I have Ubuntu 11.04. I'm installing Image Magick 6.6.7-10. I followed the installation instructions and all went well until the "make install" command, when I executed it I got this error:

Code: Select all

/usr/bin/ld: /usr/local/lib/libfftw3.a(alloc.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libfftw3.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
libtool: install: error: relink `wand/libMagickWand.la' with the above command before installing it
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/diego/Software/Development/PHP/Extensions/ImageMagick-6.6.7-10'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/diego/Software/Development/PHP/Extensions/ImageMagick-6.6.7-10'
make: *** [install] Error 2
Any help will be very appreciated.

Thanks in advance!

Re: Installation error on 'make install'

Posted: 2011-08-17T17:19:12-07:00
by diegocaprioli
I've managed to find the problem. My libfftw3.a was compiled without -fPIC. I uninstalled FFTW from my system, dowloanded the latest source code from FFTW site and build with -fPIC on CFLAGS and CXXFLAGS. Then I tryed againd the ImageMagick installataion and it went fine.

Now I'm having another problem. When I run the 'make check' command, the magic wand test fails. This is the test logfile:

Code: Select all

=========================================
   ImageMagick 6.7.1: ./test-suite.log   
=========================================

1 of 48 tests failed.  

.. contents:: :depth: 2


FAIL: wand/wandtest.sh (exit: 255)
==================================

lt-wandtest: delegate library support not built-in `/usr/share/fonts/type1/gsfonts/n019003l.pfb' (Freetype) @ warning/annotate.c/RenderFreetype/1505.
lt-wandtest: no decode delegate for this image format `/tmp/magick-Xv3AW3KN-00000001' @ error/constitute.c/ReadImage/532.
lt-wandtest: Postscript delegate failed `/tmp/magick-j8QxpjNP':  @ error/ps.c/ReadPSImage/807.
lt-wandtest: delegate library support not built-in `/usr/share/fonts/type1/gsfonts/n019003l.pfb' (Freetype) @ warning/annotate.c/RenderFreetype/1505.
lt-wandtest: no decode delegate for this image format `/tmp/magick-PIAMuWnr-00000001' @ error/constitute.c/ReadImage/532.
lt-wandtest: Postscript delegate failed `/tmp/magick-QIYZEdFs':  @ error/ps.c/ReadPSImage/807.
lt-wandtest: delegate library support not built-in `/usr/share/fonts/type1/gsfonts/n019003l.pfb' (Freetype) @ warning/annotate.c/RenderFreetype/1505.
lt-wandtest: no decode delegate for this image format `/tmp/magick-MUc32Dc6-00000001' @ error/constitute.c/ReadImage/532.
lt-wandtest: Postscript delegate failed `/tmp/magick-alIuOwA6':  @ error/ps.c/ReadPSImage/807.
lt-wandtest: delegate library support not built-in `/usr/share/fonts/type1/gsfonts/n019003l.pfb' (Freetype) @ warning/annotate.c/RenderFreetype/1505.
lt-wandtest: no decode delegate for this image format `/tmp/magick-nGnBK1nM-00000001' @ error/constitute.c/ReadImage/532.
lt-wandtest: Postscript delegate failed `/tmp/magick-bYbZXoKL':  @ error/ps.c/ReadPSImage/807.
wand/wandtest.c main 533 
Reading images...
Iterate forward...
index 0 scene 0
index 1 scene 1
index 2 scene 2
index 3 scene 3
index 4 scene 4
Iterate reverse...
index 4 scene 4
index 3 scene 3
index 2 scene 2
index 1 scene 1
index 0 scene 0
Remove scene 1...
index 0 scene 0
index 1 scene 2
index 2 scene 3
index 3 scene 4
Insert scene 1 back in sequence...
index 0 scene 0
index 1 scene 1
index 2 scene 2
index 3 scene 3
index 4 scene 4
Set scene 2 to scene 1...
index 0 scene 0
index 1 scene 1
index 2 scene 1
index 3 scene 3
index 4 scene 4
Apply image processing options...
I'm running Ubuntu 11.04 and it seems that Ghostscript and freetype libraries are installed. Could anybody give me any direction from here?