[texhax] latex doesn't find style files

Lars Madsen daleif at imf.au.dk
Fri Mar 30 11:06:51 CEST 2012


Axel E. Retif wrote, On 2012-03-30 10:58:
> On 03/30/2012 02:25 AM, Lars Madsen wrote:
> 
>> jtzzaa11-texhax2 at yahoo.com wrote, On 2012-03-30 10:20:
>>> Thanks.
>>>
>>> "which latex" gives
>>> /usr/bin/latex
>>>
>>
>> This may suggest that you have two LaTeX installations on this computer.
>>
>> You will need to make sure that the correct TL bin dir comes first in
>> the PATH.
>>
>> You're using Debian, which seems to be doing thing a little differently
>> than Ubuntu (which I normally use), so you will have to figure out how
>> one perform a global change to the system PATH
> 
> 
> Nice diagnosis, Lars! To the OP:
> 
> To add the path to TeXLive binaries in Debian (or rather, to prepend 
> said path, which is what you need), *open as administrator* 
> /etc/login.defs; find two lines like these:
> 
>     ENV_SUPATH    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:
>                  /usr/bin:/sbin:/bin
>     ENV_PATH    PATH=/usr/local/bin:/usr/bin:/bin:
>                  /usr/local/games:/usr/games
> 
> Now ---in ENV_SUPATH put, *before* /usr/local/sbin the path to TeXLive 
> binaries; if you're Debian is 64 bits it should be
> 
>     /usr/local/texlive/2011/bin/x86_64-linux:
> 
> If it is 32 bits, it will be different at the end: check in 
> /usr/local/texlive/2011/bin/ which binaries you have and put said line 
> exactly as you see it.
> 
> So ENV_SUPATH will be (assuming 64bit):
> 
>     ENV_SUPATH    PATH=/usr/local/texlive/2011/bin/x86_64-linux:
>                 /usr/local/sbin: etc.
> 
> don't forget the colon!
> 
> Do the same with ENV_PATH and restart. Now which latex should output
> 
>     /usr/local/texlive/2011/bin/x86_64-linux/latex
> 
> and you won't need the TEXINPUTS line, with which, by the way, you are 
> using the Debian binaries with TeXLive packages!
> 
> 
> Best
> 
> Axel
> 

Thanks Axel, I've saved this for later use on Debian systems. Did not 
know about /etc/login.defs


-- 

/daleif


More information about the texhax mailing list