Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have installed TeX Live 2013 full install on a Linux Mint installation (so it is Ubuntu, basically).

Now, I cannot use beamer or most packages, because all my editors like Gummi seek the 2012 path.

On Windows I use TeX Live 2013 with Texworks without issue.

What is the correct way step by step to get a working TeX Live 2013 installation on Linux?

What I have done (perhaps it is wrong, yes?):

  1. Insert DVD

  2. Open DVD folder in terminal

  3. sudo ./install-tl

  4. Enter password

  5. I

  6. Enter

[it installs]

But I cannot use most packages and cannot install Gedit LaTeX plugin because it says I have broken packages. Synaptic package manager says I have TeX Live 2012 installed, which is wrong.

EDIT: after trying various things, I am not sure how to proceed. Did I need to set different install directories (different from default) when installing? If so, I do not know how to change my TeX editor to look for everything in those directories. (I am not a master in Linux Mint.)

What worked for people here, if they have TeXLive2013 on linux?

If there is an easier way to with certainty get TexLive2013 working with correct install method with Gummi or gedit TeX plugin as editor, how can I unfully install my current TeXlive2013 so I can reinstall it correctly?

share|improve this question
2  
Welcome to TeX.SX! See this similar question: How to install “vanilla” TeXLive on Debian or Ubuntu?. See also the debian instructions page of TeX Live –  henrique Sep 14 '13 at 1:30
1  
Maybe Installing TeX Live on Linux is helpful. –  Svend Tveskæg Sep 14 '13 at 12:52
    
I installed it the way I wrote in my question? Is that the way Installing TeX Live on Linux gives, for all directories? If not, how do I fully uninstall TeX Live 2013 from Linux Mint (so that I can reinstall it the correct way?) –  Guido Jorg Sep 22 '13 at 1:08

2 Answers 2

up vote 8 down vote accepted

In your home directory, look in the (hidden) files .bashrc and .bash_profile for lines that include your texlive 2012 path and remove the path. Then add these lines to your .bashrc:

export PATH=/usr/local/texlive/2013/bin/x86_64-linux:$PATH
export MANPATH=/usr/local/texlive/2013/texmf/doc/man:$MANPATH
export INFOPATH=/usr/local/texlive/2013/texmf/doc/info:$INFOPATH

(If you installed texlive somewhere else, or aren't using x86_64, change the paths to point to the correct install directory)

EDIT: I seem to have misunderstood the original question. The above will make sure you're pointing to the correct version of TeXLive (sounds like you might have some 2012 packages installed via your package manager as well). If you want to use a TL installation from a DVD, but packages from your package manager (I don't recommend it, but that sounds like it's what you want to do), you can try creating a dummy TL package so that your package manager will think TL Is installed from it and the dependency chain can be resolved.

Something like the following (from the Tug package on Debian) should do the trick:

  1. Install vanilla TeX Live as root, system-wide.
  2. Ensure that the only Debian TeX Live packages installed are tex-common, texinfo, and perhaps lmodern
  3. Add TeX Live's bin directory to ENV_PATH in /etc/login.defs. [basically what I said above, except that I assume that you might want a different version of TeXLive for different people, hence the use of bashrc).
  4. Tell APT about your TeX Live installation by building a dummy package using equivs:

    • $ aptitude install equivs # as root
    • mkdir /tmp/tl-equivs && cd /tmp/tl-equivs
    • equivs-control texlive-local
    • # edit texlive-local (see below)
    • $ equivs-build texlive-local
    • $ sudo dpkg -i texlive-local_2011-1_all.deb

At the step "edit texlive-local", edit the Maintainer field and the list of the packages provided by your local TeX Live installation as appropriate. If you installed scheme-full except collection-texinfo as recommended, the file should look like this example.

For more information, see this question.

share|improve this answer
    
While this is useful (but incorrect if in a multi-user environment), it doesn't address OP's question about how to fix it such that his package manager sees that he has manually installed texlive. –  kahen Sep 14 '13 at 5:48
1  
This is not a good idea as most editors do not work with shells that run bashrc. In, say, Ubuntu it is better to add the path to /etc/environment (remember to make a backup) –  daleif Sep 14 '13 at 11:04
    
Ah, I seem to have misunderstood the question. This is exactly what you want to do in a multi user environment though. You might want to use TL2013, but another might want to stick with 2012. –  Sam Whited Sep 14 '13 at 11:53
    
The hidden files .bashrc and .bash_profile are not present in my home folder... What should I do? Actually, I don't need any texlive2012 packages installed and do not have any installed now, just installed the full texlive2013 installation from disk and would like it to work. –  Guido Jorg Sep 22 '13 at 1:03
    
Just create them. Also, they're hidden files (hence the startind dot), so they're probably there and you just can't see them. –  Sam Whited Sep 22 '13 at 14:48

You have to set up equivs such that dpkg knows that the relevant packages are installed. Try running apt-get install texlive-full (don't actually go through with the install, obviously) and see what apt-get says is needed.

Then you need to manually edit your system $PATH and $MANPATH. I'd do that by editing /etc/environment and rebooting.

share|improve this answer
    
What do I have to enter in /etc/environment? I only have something like PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/u‌​sr/local/games" –  Guido Jorg Sep 22 '13 at 0:58
    
Also, how do I know if a package is needed or not? I see suggested packages but no required packages. –  Guido Jorg Sep 22 '13 at 1:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.