Page 1 of 1

building from source library errors.. rhel5

Posted: 2012-09-03T14:14:46-07:00
by fordfasterr
Hi all, I am installing IM v. 6.7.9-3 from source because I need tiff support.

I run ./configure with all of the necessary options including tiff, when it finishes I run make

I have these errors:

Code: Select all

  CC       utilities/stream.o
  CCLD     utilities/stream
/usr/bin/ld: skipping incompatible /usr/lib/libtiff.so when searching for -ltiff
/usr/bin/ld: skipping incompatible /usr/lib/libfreetype.so when searching for -lfreetype
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libgs.so when searching for -lgs
/usr/bin/ld: skipping incompatible /usr/lib/libXext.so when searching for -lXext
/usr/bin/ld: skipping incompatible /usr/lib/libXt.so when searching for -lXt
/usr/bin/ld: skipping incompatible /usr/lib/libbz2.so when searching for -lbz2
/usr/bin/ld: skipping incompatible /usr/lib/libbz2.a when searching for -lbz2
/usr/bin/ld: skipping incompatible /usr/lib/libX11.so when searching for -lX11
/usr/bin/ld: warning: libtiff.so.3, needed by /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/libgs.so, may conflict with libtiff.so.5
make[1]: Leaving directory `/root/rpm/ImageMagick-6.7.9-3'
If I run: sudo make install it will install IM but without tiff support.

Can anyone please help me sort this out?

Re: building from source library errors.. rhel5

Posted: 2012-09-04T08:19:36-07:00
by fordfasterr
I've been able to sort out most of the errors including anything related to (TIFF).

However, after a fresh compile and install I still don't get any tiff image support AT ALL.

I need some help badly.

Re: building from source library errors.. rhel5

Posted: 2012-09-04T10:02:59-07:00
by fmw42
fordfasterr wrote:I've been able to sort out most of the errors including anything related to (TIFF).

However, after a fresh compile and install I still don't get any tiff image support AT ALL.

I need some help badly.
Did you install the libtiff delegate before compiling IM from source. You must install delegates before installing IM. You will need other delegates such as for jpg, png etc.

If you run

convert -list configure | grep -i "delegates"

it should show you what delegates IM has found and/or recognized.

see
http://www.imagemagick.org/download/delegates/

Re: building from source library errors.. rhel5

Posted: 2012-09-05T12:42:44-07:00
by fordfasterr
I did install it, but then I got many compile errors saying libtiff.so.3 is not compatible with libtiff.so.5 ...

so I removed all the libtiff.so.5 lib files, tried to recompile, same problem...

I have just re-installed tiff4.0, I'm going to configure/make/make install again...

Re: building from source library errors.. rhel5

Posted: 2012-09-05T13:06:12-07:00
by fordfasterr
After compiling and installing with libtiff4,

(see, it is installed...):

Code: Select all

whereis libtiff.so.5
libtiff.so: /usr/lib/libtiff.so.3 /usr/local/lib/libtiff.so.5 /usr/local/lib/libtiff.so
using this ./configure option:

Code: Select all

 ./configure --prefix=/usr --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes
I end up with no TIFF delegates...

Code: Select all

convert -list configure | grep -i "delegates"
DELEGATES     jpeg jng jp2 png zlib

Re: building from source library errors.. rhel5

Posted: 2012-09-07T11:07:32-07:00
by fordfasterr
FYI, I finally got this resolved.

It was actually an issue with the paths the app owner was using causing the binaries to execute from a different location.. I had to use symlinks to fix them and everything finally worked.

Also, for some reason I had to install both i386 and x86_64 RPM's for the entire thing to work...


:D