Vim-LatexSuite:/bin/bash: латекс command not found

TeXLive 2015: I installed TeXLive 2015 following the simplest instruction sudo ./install-tl-ubuntu (without any options) of scottkosty/install-tl-ubuntu@GitHub.


Vim-Latex-Suite: I installed Vim-Latex-Suite following these Инстальятион Инструктионс, including these recommended settings.

However, \ll (to я составил .tex in Latex-Suite) does not work.
The command :!latex -interaction=nonstopmode % шоу

/bin/bash: latex: command not found
shell returned 127    

My current configurations:

echo $PATH in ubuntu шоу:

/opt/texbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

:echo $PATH in vim шоу:

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

which latex шоу /opt/texbin/latex;
and latex --version шоу

pdfTeX 3.14159265-2.6-1.40.16 (TeX Live 2015)
kpathsea version 6.2.1
Copyright 2015 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.6.17; using libpng 1.6.17
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with xpdf version 3.04

Two methods which do not work:

  1. Adding export PATH=$PATH:/opt/texbin/ to file .bashrc
  2. The method from ТЕКС Ливе and vim-latexsuite PATH problems does not work for я:

    $ cat /etc/profile.d/latex.sh  
    export PATH="${PATH}:/usr/local/texlive/2015/bin/x86_64-linux"
    

ADDED: By the way, in my another Ubuntu system with латекс installed in another way, which latex gives /usr/bin/latex and vim-latex works.

2
задан 5 January 2016 в 10:37

1 ответ

Сценарий sudo ./install-tl-ubuntu установит латекс в /opt/texbin, где путь по умолчанию не (/usr/local/texlive/2015/bin/x86_64-linux) для латекса.

Кажется, что Вы установили два latex, любой из них должен работать в случае, если Вы устанавливаете их соответствие $PATH в .bashrc.

Я отмечаю, что Ваша оболочка и энергия имеют отличающийся $PATH. Vim не может найти latex с он $PATH. Маловероятно, что Вы запустили энергию в старой оболочке, когда Вы перезапустили свой компьютер. Я предполагаю, что Вы выполняете энергию с sudo, как sudo среда корня использования, где обычно сохраняет значение по умолчанию $PATH, точно то же значение в Вашей энергии.

3
ответ дан 2 December 2019 в 02:53

Другие вопросы по тегам:

Похожие вопросы: