Setting TeX Live path for root
        Posted  
        
            by 
                N.N.
            
        on Ask Ubuntu
        
        See other posts from Ask Ubuntu
        
            or by N.N.
        
        
        
        Published on 2011-10-14T06:26:45Z
        Indexed on 
            2011/11/21
            2:08 UTC
        
        
        Read the original article
        Hit count: 349
        
I have installed TeX Live 2011 vanilla and I have trouble setting the TeX Live path for root (in Ubuntu 11.10).
The problem is that when I run sudo tlmgr I get:
sudo: tlmgr: command not found
To fix the path for non-root it was sufficient to add
PATH=/usr/local/texlive/2011/bin/x86_64-linux:$PATH
to /etc/profile.
I have tried adding this same line to /root/.bashrc and I have also tried to add it to /etc/profile.d/zzz-texlive.sh like Herbert suggest in http://tex.stackexchange.com/questions/26624/tlmgr-inaccessible/26626#26626  but it does not help.
© Ask Ubuntu or respective owner