TeXworksUnable to compile twice

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
Post Reply
peter jcd
Posts: 2
Joined: Fri Jan 20, 2012 2:36 pm

Unable to compile twice

Post by peter jcd »

This is my first time on the forum (or in fact any forum) and would appreciate some help.

I am using MiKTex 2.9. Previously when I used it I had no problems. However I did not use it for a couple of months and now I am only ever able to compile once. The second time I always get an error. This is only prevented if I first delete all the files from the previous compilation, and naturally I do not want to do this everytime. For example for the following simple tex document:

Code: Select all

\documentclass{article}

\begin{document}
 Test
\end{document}
I get the following console output after the second compilation (the first compilation works fine):

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9)
entering extended mode

("X:/Data/My Documents/Linux/Documents/LaTeX/Learn_LaTeX/PhD_Thesis/test/test.t
ex"
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, 
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Program Files\MiKTeX\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX\tex\latex\base\size10.clo"))
("X:\Data\My Documents\Linux\Documents\LaTeX\Learn_LaTeX\PhD_Thesis\test\test.a
ux")pdflatex.EXE: Bad file descriptor: test.pdf
pdflatex.EXE: Data: test.pdf
texify: pdflatex failed for some reason (see log file).
The log file then contains the following:

Code: Select all

This is pdfTeX, Version 3.1415926-1.40.11 (MiKTeX 2.9) (preloaded format=pdflatex 2012.1.13)  20 JAN 2012 13:43
entering extended mode
**X:/Data/My*Documents/Linux/Documents/LaTeX/Learn_LaTeX/PhD_Thesis/test/test.t
ex

("X:/Data/My Documents/Linux/Documents/LaTeX/Learn_LaTeX/PhD_Thesis/test/test.t
ex"
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic, 
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese, 
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Program Files\MiKTeX\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files\MiKTeX\tex\latex\base\size10.clo"
File: size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
("X:\Data\My Documents\Linux\Documents\LaTeX\Learn_LaTeX\PhD_Thesis\test\test.a
ux")
LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Unable to compile twice

Post by localghost »

peter jcd wrote:[…] However I did not use it for a couple of months and now I am only ever able to compile once. […]
If so, I suggest to do an update of your installation and then try again. You can find the MiKTeX tools somewhere in the »Start« menu. You may need administrator rights for this process.


Best regards and welcome to the board
Thorsten
peter jcd
Posts: 2
Joined: Fri Jan 20, 2012 2:36 pm

Re: Unable to compile twice

Post by peter jcd »

Thank you for your help, however updating did not work and neither did uninstalling then reinstalling. I did however manage to get it to work my changing where my files were saved. I generally keep all of my work on a Network Drive. If instead I move it to a Local Disk then MiKTeX seems to work fine.
Post Reply