#543 could not start TeX commands

closed
nobody
None
5
2014-09-30
2012-05-21
Ven. Pandita
No

I have been using the latest svn version of TeXstudio happily until a while ago. Then, I happened to install the TeX Live 2012 pretest and removed the 2011 version. From that time on, TeXstudio has not been able to start any TeX commands liike xetex, pdflatex, etc. I removed the whole installed TeXstudio, recompiled it and installed it anew, but it still doesn't work.

(The command PATH is correct. I can use command line or TeXworks with the TeXlive 2012 pretest but not TeXstudio.)
(My old TeXlive 2011 was in /usr/local/texlive but the new 2012 is in /home/pan/texlive folder.)

Discussion

1 2 > >> (Page 1 of 2)
  • can you set a user command "printenv" and take look how "PATH" is set ?
    (recompilation and installtion does not have to do anything with the problem)

     
  • The following is my printenv

    pan@pan-desktop:~$ printenv
    LC_PAPER=en_US.UTF-8
    MANPATH=/home/pan/perl5/perlbrew/perls/perl-5.16.0/man:
    PERLBREW_VERSION=0.42
    LC_ADDRESS=en_US.UTF-8
    SSH_AGENT_PID=2333
    LC_MONETARY=en_US.UTF-8
    PERLBREW_PERL=perl-5.16.0
    GLADE_PIXMAP_PATH=:
    TERM=xterm
    SHELL=/bin/bash
    XDG_MENU_PREFIX=xfce-
    XDG_SESSION_COOKIE=2d1a2b72b67d4c4351ec96e200000007-1337499585.703674-1153639822
    WINDOWID=67108868
    LC_NUMERIC=en_US.UTF-8
    GNOME_KEYRING_CONTROL=/tmp/keyring-oXfrbZ
    USER=pan
    LC_TELEPHONE=en_US.UTF-8
    PERLBREW_BASHRC_VERSION=0.42
    XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
    GLADE_MODULE_PATH=:
    XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
    SSH_AUTH_SOCK=/tmp/ssh-MoByRCAw2294/agent.2294
    SESSION_MANAGER=local/pan-desktop:@/tmp/.ICE-unix/2356,unix/pan-desktop:/tmp/.ICE-unix/2356
    DEFAULTS_PATH=/usr/share/gconf/xubuntu.default.path
    PERLBREW_ROOT=/home/pan/perl5/perlbrew
    XDG_CONFIG_DIRS=/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg
    MANPATH_WITHOUT_PERLBREW=
    PATH=/home/pan/perl5/perlbrew/bin:/home/pan/perl5/perlbrew/perls/perl-5.16.0/bin:/home/pan/texlive/2012/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    DESKTOP_SESSION=xubuntu
    QT_IM_MODULE=ibus
    LC_IDENTIFICATION=en_US.UTF-8
    PWD=/home/pan
    XMODIFIERS=@im=ibus
    GNOME_KEYRING_PID=2283
    LANG=en_US.UTF-8
    MANDATORY_PATH=/usr/share/gconf/xubuntu.mandatory.path
    LC_MEASUREMENT=en_US.UTF-8
    PERLBREW_HOME=/home/pan/.perlbrew
    UBUNTU_MENUPROXY=libappmenu.so
    PATH_WITHOUT_PERLBREW=/home/pan/texlive/2012/bin/x86_64-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
    GDMSESSION=xubuntu
    SHLVL=1
    HOME=/home/pan
    LANGUAGE=en_US:en
    PERLBREW_MANPATH=/home/pan/perl5/perlbrew/perls/perl-5.16.0/man
    PERLBREW_PATH=/home/pan/perl5/perlbrew/bin:/home/pan/perl5/perlbrew/perls/perl-5.16.0/bin
    LOGNAME=pan
    XDG_DATA_DIRS=/usr/share/xubuntu:/usr/local/share/:/usr/share/:/usr/share
    DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-jYNdzU0rU6,guid=fd67196908a7fa885afa141100000263
    DISPLAY=:0.0
    GLADE_CATALOG_PATH=:
    LIBGLADE_MODULE_PATH=:
    XDG_CURRENT_DESKTOP=XFCE
    GTK_IM_MODULE=ibus
    LC_TIME=en_US.UTF-8
    COLORTERM=Terminal
    XAUTHORITY=/home/pan/.Xauthority
    LC_NAME=en_US.UTF-8
    _=/usr/bin/printenv

     
  • how is your latex command set ?

     
  • xelatex -synctex=1 -interaction=nonstopmode %.tex

     
  • Ven. Pandita
    Ven. Pandita
    2012-05-21

    I forgot to mention something. My TeXstudio is installed in /opt, but TeX live 2012 in in home. So they have different ownerships. Can it be the reason?

     
  • what is exactly the message you get when you try to start xelatex ?

     
  • what is the output if you set the user command "xelatex -synctex=1 -interaction=nonstopmode %.tex"

     
  • Ven. Pandita
    Ven. Pandita
    2012-05-21

    Error: Could not start the command: xelatex -synctex=1 -interaction=nonstopmode "main".tex

     
  • does pdföatex work ? or latexmk ?
    And what happens if you set "latex" as user command ?

     
  • or you can set "xterm" as usercommand and see how you get xelatex running from there.

     
  • Ven. Pandita
    Ven. Pandita
    2012-05-21

    No, pdflatex or latex does not work either. They show the same error:

    "Error: Could not start the command: . . . "

    But I can compile the file from a terminal; latex, pdflatex, xelatex --- everything works.

     
  • das latexmk work from texstudio ?

     
  • does latexmk work from texstudio ?

     
  • Ven. Pandita
    Ven. Pandita
    2012-05-21

    Well, no. latexmk doesn't work from texstudio. In fact, none of TeX commands do from texstudio. But all of them work in a terminal and from TeXworks.

     
  • if you set as usercommand "xterm".
    Can you run latex from the upcoming terminal ?

     
  • Ven. Pandita
    Ven. Pandita
    2012-05-21

    I have done as follows:
    1. I set a usercommand in TeXstudio as "xterm."
    2. I ran it and a terminal came up.
    3. I used the terminal to run xelatex on it, and it is successful!

     
  • if you make a usercommand with "pdflatex %.tex".
    Does that work ?

     
  • Ven. Pandita
    Ven. Pandita
    2012-05-21

    No, it doesn't. The following message comes out.

    Error: Could not start the command: pdflatex "main".tex

     
  • if you set the full path, does it work then ?
    e.g. "/home/pan/texlive/2012/bin/x86_64-linux/pdflatex %.tex"

     
  • Ven. Pandita
    Ven. Pandita
    2012-05-21

    With pdflatex, the command is:
    "/home/pan/texlive/2012/bin/x86_64-linux/pdflatex" %.tex
    And the result is:
    'Process started: "/home/pan/texlive/2012/bin/x86_64-linux/pdflatex" "main".tex
    Process exited normally'

    But with xelatex:
    the command is: "/home/pan/texlive/2012/bin/x86_64-linux/xelatex" %.tex
    And the result is:
    Process started: "/home/pan/texlive/2012/bin/x86_64-linux/xelatex" "main".tex
    Error: Command crashed: "/home/pan/texlive/2012/bin/x86_64-linux/xelatex" "main".tex
    Process exited normally

    (pdflatex compiles successfully but xelatex doesn't)

     
  • @benito: do you have an idea ?

     
  • how do you set the path variable ?

     
  • Ven. Pandita
    Ven. Pandita
    2012-05-22

    I set the path when I installed TeX Live 2012 using the install-tl script. It has a feature to set up synclinks, so I linked to /home/pan/texlive.

     
  • sync links ? how does that work ?
    what does "which latex" say, when you run it in a terminal ?

     
  • Ven. Pandita
    Ven. Pandita
    2012-05-22

    pan@pan-desktop:~$ which latex
    /home/pan/texlive/2012/bin/x86_64-linux/latex
    pan@pan-desktop:~$ which xelatex
    /home/pan/texlive/2012/bin/x86_64-linux/xelatex
    pan@pan-desktop:~$ which pdflatex
    /home/pan/texlive/2012/bin/x86_64-linux/pdflatex

     
1 2 > >> (Page 1 of 2)