## LaTeX forum ⇒ TeX Live and MacTeX ⇒ 'tlmgr' is not recognized as an internal or external command

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
lyxer
Posts: 47
Joined: Mon May 10, 2010 5:17 pm

### 'tlmgr' is not recognized as an internal or external command

Hello,

I'm trying to install Lyx on a new machine. Previously, I used Lyx with MikTex but now I'm trying to install
TexLive and then Lyx on the new machine. I downloaded and installed TexLive from
https://www.tug.org/texlive/acquire-netinstall.html

[1] First, when I click on the start button (Windows 10) I don't see Tex Live as one of the programs,
does that mean it's not installed? Under the C:/ directory I have the texlive directory which has
two subdirectories: 2019 and texmf-local.

[2] When I try to update the packages using (at the command prompt): tlmgr update --all
I get the following message:
'tlmgr' is not recognized as an internal or external command,
operable program or batch file.

I'd appreciate any help.

Saleh

lyxer
Posts: 47
Joined: Mon May 10, 2010 5:17 pm
After some search, it seems that the command: "tlmgr ....." is used for Unix and not Windows update.
For windows, a new installation for TexLive is needed.

Another question, I installed TeXworks but when I compile any file I don't get an output, instead I get the message:
"pdflatex is not properly configured"

How do I solve this problem?

Ijon Tichy
Posts: 186
Joined: Mon Dec 24, 2018 10:12 am
tlmgr is available in correctly installed TeX Live for Windows and can be used for updating TeX Live on Windows, too. By default it used the GUI tlshell.

Together with the error message of TeXworks it seems that TeX Live is not installed correctly. This could be something trivial like incorrect PATH settings or something more fundamental.

The Windows specific differences to the Unix or MacOS version of TeX Live can be found in https://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-460006.

lyxer
Posts: 47
Joined: Mon May 10, 2010 5:17 pm
Thanks for the info.
I'll try installing it again and see.

lyxer
Posts: 47
Joined: Mon May 10, 2010 5:17 pm
OK. I tried to install TexLive twice. It took many hours but at the end it was installed (or I thought it was).
Anyway, the last few lines in the installation are attached as a picture to this message.

After this installation I compiled a sample file using Texworks but I got
the following at the log:

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/W32TeX) (preloaded format=pdflatex)
restricted \write18 enabled.
fmtutil: fmtutil is using the following fmtutil.cnf files (in precedence order):
fmtutil: fmtutil is using the following fmtutil.cnf file for writing changes:
fmtutil: c:/users/saleh alshamali/.texlive2019/texmf-config/web2c/fmtutil.cnf
fmtutil [INFO]: writing formats under c:/users/saleh alshamali/.texlive2019/texmf-var/web2c
fmtutil [INFO]: did not find entry for byfmt=pdflatex, skipped
fmtutil [INFO]: total formats: 0
fmtutil [INFO]: exiting with status 0
Running the command C:\texlive\2019\bin\win32\fmtutil-user.exe
I can't find the format file `pdflatex.fmt'!

kpathsea: Running mktexfmt pdflatex.fmt

The command name is C:\texlive\2019\bin\win32\mktexfmt

I found a thread in this Forum which suggested using the command line: sudo fmtutil-sys --all
But when I tried it at the terminal I got the message:
'sudo' is not recognized as an internal or external command

I really don't understand what the problem is or how to solve it?

Saleh
Attachments
Pic_log.png (122.63 KiB) Viewed 139 times

Ijon Tichy
Posts: 186
Joined: Mon Dec 24, 2018 10:12 am
Rename the directory "c:/users/saleh alshamali/.texlive2019" into "c:/users/saleh alshamali/.texlive2019.bak"
and try again:

C:\texlive\2019\bin\win32\fmtutil-sys.exe --all

Note: sudo is a command to switch to admin mode on Linux/Unix or MacOSX.

I really don't understand what the problem is or how to solve it?

Yes, it is strange. Maybe you should ask on the TeX Live mailing list.

lyxer
Posts: 47
Joined: Mon May 10, 2010 5:17 pm
Still not working.
I will try to get help from a Texlive mailing list.

Thanks for help