building from source library errors.. rhel5

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
fordfasterr
Posts: 15
Joined: 2012-09-03T14:08:55-07:00
Authentication code: 67789

building from source library errors.. rhel5

Post 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?
fordfasterr
Posts: 15
Joined: 2012-09-03T14:08:55-07:00
Authentication code: 67789

Re: building from source library errors.. rhel5

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: building from source library errors.. rhel5

Post 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/
fordfasterr
Posts: 15
Joined: 2012-09-03T14:08:55-07:00
Authentication code: 67789

Re: building from source library errors.. rhel5

Post 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...
fordfasterr
Posts: 15
Joined: 2012-09-03T14:08:55-07:00
Authentication code: 67789

Re: building from source library errors.. rhel5

Post 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
fordfasterr
Posts: 15
Joined: 2012-09-03T14:08:55-07:00
Authentication code: 67789

Re: building from source library errors.. rhel5

Post 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
Post Reply