0

I decided to try the MikTex 2.9 portable. Its my first time using this software. I downloaded and extracted the contents on logical partition E:. I am having a problem to compile the code. I have updated the packages etc. It did not solve the issue. I am running Windows 10. Please see the log below:

   2019-02-02 12:52:01,640+0400 INFO  miktex-pdftex - starting with command line: E:\Miktex\texmfs\install\miktex\bin\miktex-pdftex.exe -synctex=1 -undump=pdflatex untitled-2.tex
2019-02-02 12:52:01,645+0400 INFO  miktex-pdftex - allowing known shell commands
2019-02-02 12:52:01,645+0400 INFO  miktex-pdftex - enabling input (output) from (to) processes
2019-02-02 12:52:01,660+0400 INFO  miktex-pdftex - going to create file: pdflatex.fmt
2019-02-02 12:52:02,670+0400 INFO  miktex-pdftex - starting with command line: miktex-pdftex.exe --miktex-disable-maintenance --initialize --interaction=nonstopmode --halt-on-error --alias=pdflatex --job-name=pdflatex -tcx=cp227.tcx --enable-etex pdflatex.ini
2019-02-02 12:52:02,674+0400 INFO  miktex-pdftex - allowing known shell commands
2019-02-02 12:52:02,674+0400 INFO  miktex-pdftex - enabling input (output) from (to) processes
2019-02-02 12:52:02,872+0400 INFO  miktex-pdftex - finishing with exit code 1
2019-02-02 12:52:02,949+0400 ERROR miktex-pdftex - E:\Miktex\texmfs\install\miktex\bin\initexmf.exe did not succeed; exitCode: 1
2019-02-02 12:52:02,949+0400 ERROR miktex-pdftex - output:
2019-02-02 12:52:02,949+0400 ERROR miktex-pdftex - 
Sorry, but "MiKTeX Configuration Utility" did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  E:\Miktex\texmfs\data\miktex\log\initexmf.log

2019-02-02 12:52:02,950+0400 FATAL miktex-pdftex - The memory dump file could not be found.
2019-02-02 12:52:02,950+0400 FATAL miktex-pdftex - Info: fileName="pdflatex.fmt"
2019-02-02 12:52:02,950+0400 FATAL miktex-pdftex - Source: Libraries\MiKTeX\TeXAndFriends\texmfapp.cpp
2019-02-02 12:52:02,950+0400 FATAL miktex-pdftex - Line: 689
2019-02-02 12:52:02,951+0400 INFO  miktex-pdftex - finishing with exit code 1

Initexmf.log below

2019-02-02 12:56:58,657+0400 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.6964 (MiKTeX 2.9.6960)
2019-02-02 12:56:58,657+0400 INFO  initexmf - Operating on the private (per-user) MiKTeX setup
2019-02-02 12:56:58,657+0400 INFO  initexmf - starting with command line: initexmf --dump-by-name=pdflatex --engine=pdftex
2019-02-02 12:56:58,662+0400 INFO  initexmf - running: miktex-makefmt.exe --engine=pdftex --dest-name=pdflatex --no-dump pdflatex.ini --engine-option=-tcx=cp227.tcx --miktex-disable-maintenance
2019-02-02 12:56:59,705+0400 ERROR initexmf - sub-process error output has been saved to 'E:\Miktex\texmfs\data\miktex\log\miktex-makefmt_2019-02-02-125659.out'
2019-02-02 12:56:59,705+0400 FATAL initexmf - The executed process did not succeed.
2019-02-02 12:56:59,706+0400 FATAL initexmf - Info: fileName="E:\Miktex\texmfs\install\miktex\bin\miktex-makefmt.exe", exitCode="1"
2019-02-02 12:56:59,706+0400 FATAL initexmf - Source: 
2019-02-02 12:56:59,706+0400 FATAL initexmf - Line: 0
  • The WARN miktex-pdftex - running with administrator privileges looks a bit suspicious. There is in general no good reason why you should call pdflatex with admin privileges. How do you call pdfLaTeX? – moewe Feb 2 at 8:35
  • I double click on 'miktex-portable.cmd' to open the MikTex Console. Then I click on the 'TexWorks' button to open the editor – Nadeem Muhammad Feb 2 at 8:50
  • Mhhh, the log shows you get into admin mode doing that. Do you get a Windows UAC prompt at any point? Do you click on anything that says admin? – moewe Feb 2 at 8:52
  • Sorry for the confusion, I might have tried running with admin priviledges to see if it solve the problem which it did not. I have open it again in the normal mode as described above. I have updated the main post with the new log because i could not add it here as it was long. Trying to compile this simple code \documentclass{article} \begin{document} Hello world. \end{document} – Nadeem Muhammad Feb 2 at 8:55
  • 2
    The format file is missing. Try to create it in the MiKTeX console. If it doesn't work add am issue in the MiKTeX issue tracker. – Ulrike Fischer Feb 2 at 9:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.