LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2009, 04:46 AM   #1
pramod.srk
Member
 
Registered: Feb 2009
Posts: 47

Rep: Reputation: 15
Libtiff issue


Hi I am porting application from unix to RHEL - 5.
Every thing is fine except libtiff library.
I installed the library "tiff-v3.5.5.tar.gz" and after succefull installation i ran the following command
$tiffinfo output.tif
I got the following error message
output.tif: Can not read TIFF directory.

The input file output.tif is fine and it gives following info when ran the same command in Cent OS.
[root@terienterpras libtest]# tiffinfo output.tif
TIFF Directory at offset 0x1e
Image Width: 200 Image Length: 144
Resolution: 150, 150 pixels/inch
Bits/Sample: 1
Compression Scheme: CCITT Group 4
Photometric Interpretation: min-is-white
FillOrder: msb-to-lsb
Samples/Pixel: 1
Rows/Strip: 144
Planar Configuration: single image plane


With Regards
Pramod
 
Old 02-17-2009, 04:55 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Does the output.tif file have correct permissions? Is it readable?
 
Old 02-17-2009, 05:01 AM   #3
pramod.srk
Member
 
Registered: Feb 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Yes the file output.tif is readable.
 
Old 02-17-2009, 05:52 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Does using -d or -D option help? If not then you should wait for someone who has more experience with tiff.
 
Old 02-17-2009, 06:17 AM   #5
pramod.srk
Member
 
Registered: Feb 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks for reply.
I am not using the option -D or -d.
Might be the problem with OS Version. It is working fine on 32 bit RHEL-5.
Ok we will wait some one worked on tiff.
 
Old 02-17-2009, 07:14 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
I am saying can you try using -d or -D option and try again and say if that works or not.
 
Old 02-17-2009, 07:20 AM   #7
pramod.srk
Member
 
Registered: Feb 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Yes.. :-)
I tried by giving the options -d and -D.
In both cases as well, it is giving the same error message.
 
Old 02-17-2009, 07:41 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Are you sure the library was installed without errors and you did not miss any of them ?
 
Old 02-17-2009, 08:03 AM   #9
pramod.srk
Member
 
Registered: Feb 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Yes.. I cross checked it is installing without errors.
I am even upgraded with one of the version. It also upgrades the library fine.
I observed that libtiff will be installed during RHEL setup.
Is there any issues with built in version( come up with RHEL) or/and with my library (Downloaded).
I tried to uninstall the library but got some dependencies ( Libs related to ORACLE).


Thanks
Pramod
 
Old 02-17-2009, 09:26 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Quote:
I installed the library "tiff-v3.5.5.tar.gz"
Why ? libtiff-3.8.2-7.el5.i386 or similar is already installed.
So you actually installed a much older version.

And doing 'tiffinfo -<option> <file>' will use /usr/bin/tiffinfo
and not /usr/local/bin/tiffinfo ... or where did you install ?

If you were missing something for developing, compiling,
you should do # 'yum install libtiff-devel' as preferred and
recommended install method.
....

Last edited by knudfl; 02-17-2009 at 09:37 AM.
 
Old 02-18-2009, 07:36 AM   #11
pramod.srk
Member
 
Registered: Feb 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Yes .. I finally got the result.
Actually it was taking binary from /usr/bin.
Then i ran the utility using /usr/local/bin (Installed).
I got the result as expected.

Thanks
Pramod
 
Old 02-18-2009, 07:50 AM   #12
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Isnt /usr/local/bin in your $PATH?
 
Old 02-18-2009, 01:42 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
@linuxlover.chaitanya
Quote:
Isn't /usr/local/bin in your $PATH?
The OP, pramod.srk, has two versions installed, and /usr/bin/
comes first in the path, so /usr/bin/tiffinfo will be executed
with the command 'tiffinfo'
.....
 
Old 02-18-2009, 11:42 PM   #14
pramod.srk
Member
 
Registered: Feb 2009
Posts: 47

Original Poster
Rep: Reputation: 15
It was not set. We have removed that path to test some utilities.
Thanks for the inputs given.


Thanks
Pramod
 
Old 02-19-2009, 12:29 AM   #15
pramod.srk
Member
 
Registered: Feb 2009
Posts: 47

Original Poster
Rep: Reputation: 15
Can you please look my other issue.. Related to libaio_raw.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libtiff.so.4 and MaxView Trio3b Linux - Software 1 08-23-2006 07:31 AM
trouble: gtk & libtiff or ltiff pkghost Linux - Newbie 2 12-17-2005 04:32 AM
Problem on installing Libtiff satimis Linux From Scratch 3 09-16-2005 12:16 AM
Configure error in Hylafax With Libtiff eogandix Linux - Software 1 02-01-2005 01:51 PM
Problem Upgrading LibTIFF to 3.6.1 on Mandrake 10 alvinl Mandriva 0 08-04-2004 12:31 PM


All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration