<div><span class="gmail_quote">On 11/29/06, <b class="gmail_sendername">Uwe Lück</b> &lt;<a href="mailto:uwe.lueck@web.de">uwe.lueck@web.de</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">At 08:07 28.11.06, Jay wrote:<br><br>&gt;I am unable to compile any tex file with latex command. I am getting
<br>&gt;mention below error for every tex file:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is TeX, Version 3.14159 (Web2C 7.3.1)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;! I can't find file `sample.tex'.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;*&gt; sample.tex
<br><br>Probably you just must have the directory containing those .tex files<br>in the currently active window, or choose this directory by &quot;cd&quot;.<br><br>By the way, TeX mailing list readers tend to ignore html postings.
<br><br>Hope this helps -- Uwe.<br><br></blockquote></div>
<div><br>I have done the same. My file resides at /home/jay/tex/sample.tex. Today I have noticed, kpsewhich command is not functioning properly. for example: kpsewhich book.cls is showing the complete path but when I am searching the path for other packages like 
graphics.sty, longtable.sty,&nbsp;not showing any&nbsp;path.</div>
<div>&nbsp;</div>
<div>Whenever I execute the latex sample.tex command, I&nbsp;have encountered with mention above error.&nbsp;Do I have problem with Kpathsea? Do I need to re-install tetex?</div>
<div>&nbsp;</div>
<div>Please suggest.</div>
<div>&nbsp;</div>
<div>Thanking you,</div>
<div>Sanjay</div>