LaTeX cannot find installed packages











up vote
0
down vote

favorite












It seems that I have two installations of TeXlive, one of which is more updated.



When I run latex, it seems to search packages inside the old installation. How can I direct latex to look for the updated installation?



All my packages in the new installation (such as tcolorbox) are listed as directories in the directory /usr/local/texlive/2015/texmf-dist/tex/latex/.



The old installation lists the package files in /usr/share/texlive/texmf-dist/tex/latex/.



Also, the command which latex gives /usr/bin/latex.










share|improve this question
























  • Set the paths correctly (or whatever Windows requires). What OS do you use?
    – jon
    Jul 3 '15 at 16:34










  • I use Ubuntu 14.10. How do I set the paths permanently (if possible)? Thank you.
    – usr203050
    Jul 3 '15 at 16:47








  • 1




    If you don't actually need both distributions, the best way to go is to remove the outdated one. Things will be much simpler that way. But if you really need to have two or more TeX distributions, the other path-related comments will be useful.
    – Paul Gessler
    Jul 3 '15 at 17:29






  • 1




    Do not use sudo gedit ~/.profile! You should not need sudo to edit a file in your home directory.
    – jon
    Jul 3 '15 at 17:48






  • 1




    No: The $PATH variable is so your system can find the commands latex and so forth, not find the packages.
    – jon
    Jul 3 '15 at 18:34















up vote
0
down vote

favorite












It seems that I have two installations of TeXlive, one of which is more updated.



When I run latex, it seems to search packages inside the old installation. How can I direct latex to look for the updated installation?



All my packages in the new installation (such as tcolorbox) are listed as directories in the directory /usr/local/texlive/2015/texmf-dist/tex/latex/.



The old installation lists the package files in /usr/share/texlive/texmf-dist/tex/latex/.



Also, the command which latex gives /usr/bin/latex.










share|improve this question
























  • Set the paths correctly (or whatever Windows requires). What OS do you use?
    – jon
    Jul 3 '15 at 16:34










  • I use Ubuntu 14.10. How do I set the paths permanently (if possible)? Thank you.
    – usr203050
    Jul 3 '15 at 16:47








  • 1




    If you don't actually need both distributions, the best way to go is to remove the outdated one. Things will be much simpler that way. But if you really need to have two or more TeX distributions, the other path-related comments will be useful.
    – Paul Gessler
    Jul 3 '15 at 17:29






  • 1




    Do not use sudo gedit ~/.profile! You should not need sudo to edit a file in your home directory.
    – jon
    Jul 3 '15 at 17:48






  • 1




    No: The $PATH variable is so your system can find the commands latex and so forth, not find the packages.
    – jon
    Jul 3 '15 at 18:34













up vote
0
down vote

favorite









up vote
0
down vote

favorite











It seems that I have two installations of TeXlive, one of which is more updated.



When I run latex, it seems to search packages inside the old installation. How can I direct latex to look for the updated installation?



All my packages in the new installation (such as tcolorbox) are listed as directories in the directory /usr/local/texlive/2015/texmf-dist/tex/latex/.



The old installation lists the package files in /usr/share/texlive/texmf-dist/tex/latex/.



Also, the command which latex gives /usr/bin/latex.










share|improve this question















It seems that I have two installations of TeXlive, one of which is more updated.



When I run latex, it seems to search packages inside the old installation. How can I direct latex to look for the updated installation?



All my packages in the new installation (such as tcolorbox) are listed as directories in the directory /usr/local/texlive/2015/texmf-dist/tex/latex/.



The old installation lists the package files in /usr/share/texlive/texmf-dist/tex/latex/.



Also, the command which latex gives /usr/bin/latex.







installing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 3 '15 at 18:57

























asked Jul 3 '15 at 16:21









usr203050

16310




16310












  • Set the paths correctly (or whatever Windows requires). What OS do you use?
    – jon
    Jul 3 '15 at 16:34










  • I use Ubuntu 14.10. How do I set the paths permanently (if possible)? Thank you.
    – usr203050
    Jul 3 '15 at 16:47








  • 1




    If you don't actually need both distributions, the best way to go is to remove the outdated one. Things will be much simpler that way. But if you really need to have two or more TeX distributions, the other path-related comments will be useful.
    – Paul Gessler
    Jul 3 '15 at 17:29






  • 1




    Do not use sudo gedit ~/.profile! You should not need sudo to edit a file in your home directory.
    – jon
    Jul 3 '15 at 17:48






  • 1




    No: The $PATH variable is so your system can find the commands latex and so forth, not find the packages.
    – jon
    Jul 3 '15 at 18:34


















  • Set the paths correctly (or whatever Windows requires). What OS do you use?
    – jon
    Jul 3 '15 at 16:34










  • I use Ubuntu 14.10. How do I set the paths permanently (if possible)? Thank you.
    – usr203050
    Jul 3 '15 at 16:47








  • 1




    If you don't actually need both distributions, the best way to go is to remove the outdated one. Things will be much simpler that way. But if you really need to have two or more TeX distributions, the other path-related comments will be useful.
    – Paul Gessler
    Jul 3 '15 at 17:29






  • 1




    Do not use sudo gedit ~/.profile! You should not need sudo to edit a file in your home directory.
    – jon
    Jul 3 '15 at 17:48






  • 1




    No: The $PATH variable is so your system can find the commands latex and so forth, not find the packages.
    – jon
    Jul 3 '15 at 18:34
















Set the paths correctly (or whatever Windows requires). What OS do you use?
– jon
Jul 3 '15 at 16:34




Set the paths correctly (or whatever Windows requires). What OS do you use?
– jon
Jul 3 '15 at 16:34












I use Ubuntu 14.10. How do I set the paths permanently (if possible)? Thank you.
– usr203050
Jul 3 '15 at 16:47






I use Ubuntu 14.10. How do I set the paths permanently (if possible)? Thank you.
– usr203050
Jul 3 '15 at 16:47






1




1




If you don't actually need both distributions, the best way to go is to remove the outdated one. Things will be much simpler that way. But if you really need to have two or more TeX distributions, the other path-related comments will be useful.
– Paul Gessler
Jul 3 '15 at 17:29




If you don't actually need both distributions, the best way to go is to remove the outdated one. Things will be much simpler that way. But if you really need to have two or more TeX distributions, the other path-related comments will be useful.
– Paul Gessler
Jul 3 '15 at 17:29




1




1




Do not use sudo gedit ~/.profile! You should not need sudo to edit a file in your home directory.
– jon
Jul 3 '15 at 17:48




Do not use sudo gedit ~/.profile! You should not need sudo to edit a file in your home directory.
– jon
Jul 3 '15 at 17:48




1




1




No: The $PATH variable is so your system can find the commands latex and so forth, not find the packages.
– jon
Jul 3 '15 at 18:34




No: The $PATH variable is so your system can find the commands latex and so forth, not find the packages.
– jon
Jul 3 '15 at 18:34










1 Answer
1






active

oldest

votes

















up vote
0
down vote













The path variable can be set in TeXstudio in options -> Configure TeXstudio -> Build.



Then tick the Show Advanced Options in the lower left corner.



Then put your path in Commands, in my case it is



/usr/local/texlive/2018/bin/x86_64-linux


click OK.



If your path is set in .bashrc to include the texlive installation, then you can test it with opening TeXstudio in a terminal which has the correct $PATH value. With which you can find the path to the pdflatex:



$ which pdflatex /usr/local/texlive/2018/bin/x86_64-linux/pdflatex


and paste it into TeXstudio.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f253530%2flatex-cannot-find-installed-packages%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    The path variable can be set in TeXstudio in options -> Configure TeXstudio -> Build.



    Then tick the Show Advanced Options in the lower left corner.



    Then put your path in Commands, in my case it is



    /usr/local/texlive/2018/bin/x86_64-linux


    click OK.



    If your path is set in .bashrc to include the texlive installation, then you can test it with opening TeXstudio in a terminal which has the correct $PATH value. With which you can find the path to the pdflatex:



    $ which pdflatex /usr/local/texlive/2018/bin/x86_64-linux/pdflatex


    and paste it into TeXstudio.






    share|improve this answer

























      up vote
      0
      down vote













      The path variable can be set in TeXstudio in options -> Configure TeXstudio -> Build.



      Then tick the Show Advanced Options in the lower left corner.



      Then put your path in Commands, in my case it is



      /usr/local/texlive/2018/bin/x86_64-linux


      click OK.



      If your path is set in .bashrc to include the texlive installation, then you can test it with opening TeXstudio in a terminal which has the correct $PATH value. With which you can find the path to the pdflatex:



      $ which pdflatex /usr/local/texlive/2018/bin/x86_64-linux/pdflatex


      and paste it into TeXstudio.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        The path variable can be set in TeXstudio in options -> Configure TeXstudio -> Build.



        Then tick the Show Advanced Options in the lower left corner.



        Then put your path in Commands, in my case it is



        /usr/local/texlive/2018/bin/x86_64-linux


        click OK.



        If your path is set in .bashrc to include the texlive installation, then you can test it with opening TeXstudio in a terminal which has the correct $PATH value. With which you can find the path to the pdflatex:



        $ which pdflatex /usr/local/texlive/2018/bin/x86_64-linux/pdflatex


        and paste it into TeXstudio.






        share|improve this answer












        The path variable can be set in TeXstudio in options -> Configure TeXstudio -> Build.



        Then tick the Show Advanced Options in the lower left corner.



        Then put your path in Commands, in my case it is



        /usr/local/texlive/2018/bin/x86_64-linux


        click OK.



        If your path is set in .bashrc to include the texlive installation, then you can test it with opening TeXstudio in a terminal which has the correct $PATH value. With which you can find the path to the pdflatex:



        $ which pdflatex /usr/local/texlive/2018/bin/x86_64-linux/pdflatex


        and paste it into TeXstudio.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered yesterday









        user855443

        2728




        2728






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f253530%2flatex-cannot-find-installed-packages%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Entries order in /etc/network/interfaces

            新発田市

            Grub takes very long (several minutes) to open Menu (in Multi-Boot-System)