Re: reconfiguration fails (miktex)
Fabian Wilde icloud.com> writes: > > Paul A. Rubin msu.edu> writes: > > > > > I don't have ready access to a Windows partition with LyX 2.1 any more, so > > I'm winging this a bit. I noticed your path to lyx.exe contained "cygdrive": > > > > > $ /cygdrive/c/Program\ Files\ \(x86\)/LyX\ 2.1/bin/lyx.exe -x reconfigure > > > > By any chance does that mean you have LyX installed on a machine running > > Cygwin? Years ago I had problems with reconfiguring LyX because Cygwin had a > > (broken, as I recall) version of latex that appeared on the command path > > ahead of the MiKTeX version. If that's the case for you, moving MiKTeX's bin > > directory ahead of the Cygwin bin directory on the system command path might > > help. (I would put LyX's bin directory ahead of Cygwin's as well.) > > > > Paul > > > > > Hi Paul, > > thanks for your help! Yes, there is cygwin install on the computer. I now > looked for the cygwin directory in system path variable, but there was only > the miktex path, so I'm not sure if that is the problem or if I looked at > the wrong variable. This is what's in the path variable: > > C:\Windows\system32 > C:\Windows > C:\Windows\System32\Wbem > C:\Windows\System32\WindowsPowerShell\v1.0\ > C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\ > C:\Program Files\OpenAFS\Common > C:\Program Files\OpenAFS\Client\Program > C:\Program Files (x86)\OpenAFS\Common > C:\Program Files (x86)\OpenAFS\Client\Program > C:\Program Files (x86)\Heimdal\bin\ > C:\Program Files\Heimdal\bin\ > > and these are the paths from LyX: > > $LyXDir\bin; > $LyXDir\Python; > $LyXDir\Python\Lib; > $LyXDir\Perl\bin; > $LyXDir\imagemagick; > C:\Program Files (x86)\MiKTeX 2.9\miktex\tex\latex; > C:\Program Files (x86)\MiKTeX 2.9\miktex\bin; > C:\Program Files (x86)\Vim\vim74; > C:\Program Files (x86)\LyX 2.1\ghostscript\bin > > Cheers, > Fabian > > Hi Paul and everyone! I found the solution to my problem on the LyX troubleshoot wiki. I had a problem with an UNC path. Here is a copy of the solution: LyX does not start and gives the error message: unable to find textclass file This problem may come into existence if you use LyX on a windows-pc where your windows/application profile is not stored local but on an UNC path (i.e. \\Username\Applications\LyX). One solution I have found is the following: Uninstall LyX from your PC if you have used an installation folder whose name exists of seperate words like C:\Program Files. Reinstall LyX and consider, that you use a folder whose name exists of just one word like C:\Lyx15 Start the Command Prompt in windows (Start -> All Programs -> Accessories -> Command Prompt) Change directory to C:\ (type c:) Type "c:/lyx15/python/python.exe c:/lyx15/resources/configure.py" in the Command Prompt and press "return" After the configuration has been finished you will find 4 files in the directory c:\ -> configure.log, lyxrc.defaults, textclass.lst and packages.lst Cut these 4 files and paste them into the \\Username\Application Data\LyX folder. If a directory for Lyx does not exist create a new one. Start Lyx The problem can arise even if you do not use a UNC path for the windows profile. In this case steps 5-8 are sufficient and can be carried out using the default Program Files location. Sorry for troubling you and again thanks for your help! Cheers, Fabian
Re: reconfiguration fails (miktex)
Paul A. Rubin msu.edu> writes: > > I don't have ready access to a Windows partition with LyX 2.1 any more, so > I'm winging this a bit. I noticed your path to lyx.exe contained "cygdrive": > > > $ /cygdrive/c/Program\ Files\ \(x86\)/LyX\ 2.1/bin/lyx.exe -x reconfigure > > By any chance does that mean you have LyX installed on a machine running > Cygwin? Years ago I had problems with reconfiguring LyX because Cygwin had a > (broken, as I recall) version of latex that appeared on the command path > ahead of the MiKTeX version. If that's the case for you, moving MiKTeX's bin > directory ahead of the Cygwin bin directory on the system command path might > help. (I would put LyX's bin directory ahead of Cygwin's as well.) > > Paul > > Hi Paul, thanks for your help! Yes, there is cygwin install on the computer. I now looked for the cygwin directory in system path variable, but there was only the miktex path, so I'm not sure if that is the problem or if I looked at the wrong variable. This is what's in the path variable: C:\Windows\system32 C:\Windows C:\Windows\System32\Wbem C:\Windows\System32\WindowsPowerShell\v1.0\ C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\ C:\Program Files\OpenAFS\Common C:\Program Files\OpenAFS\Client\Program C:\Program Files (x86)\OpenAFS\Common C:\Program Files (x86)\OpenAFS\Client\Program C:\Program Files (x86)\Heimdal\bin\ C:\Program Files\Heimdal\bin\ and these are the paths from LyX: $LyXDir\bin; $LyXDir\Python; $LyXDir\Python\Lib; $LyXDir\Perl\bin; $LyXDir\imagemagick; C:\Program Files (x86)\MiKTeX 2.9\miktex\tex\latex; C:\Program Files (x86)\MiKTeX 2.9\miktex\bin; C:\Program Files (x86)\Vim\vim74; C:\Program Files (x86)\LyX 2.1\ghostscript\bin Cheers, Fabian
Re: reconfiguration fails (miktex)
I don't have ready access to a Windows partition with LyX 2.1 any more, so I'm winging this a bit. I noticed your path to lyx.exe contained "cygdrive": > $ /cygdrive/c/Program\ Files\ \(x86\)/LyX\ 2.1/bin/lyx.exe -x reconfigure By any chance does that mean you have LyX installed on a machine running Cygwin? Years ago I had problems with reconfiguring LyX because Cygwin had a (broken, as I recall) version of latex that appeared on the command path ahead of the MiKTeX version. If that's the case for you, moving MiKTeX's bin directory ahead of the Cygwin bin directory on the system command path might help. (I would put LyX's bin directory ahead of Cygwin's as well.) Paul
reconfiguration fails (miktex)
Hello everone! I have a fresh install of Lyx (bundle) on my windows box. Lyx starts up fine, but I can not typeset files using Ctrl-R. All packages are marked as unavailable, although the miktex path seems to be fine (C:\Program Files (x86)\MiKTeX 2.9\miktex\bin) and miktex itself seems to work as expected. Lyx Reconfigure fails with: $ /cygdrive/c/Program\ Files\ \(x86\)/LyX\ 2.1/bin/lyx.exe -x reconfigure Looking for python v2.x ... Examining C:/Program Files (x86)/LyX 2.1//Python/python.exe Examining C:/Program Files (x86)/LyX 2.1//Python/pythonw.exe Examining C:/cygwin64/bin/python2.7.exe Examining C:/cygwin64/bin/python3.2m.exe Warning: No python v2.x binary found. checking for DVI to DTL converter... +checking for "dv2dt"... yes checking for DTL to DVI converter... +checking for "dt2dv"... yes checking for a Latex2e program... +checking for "latex"... yes checking for a DVI postprocessing program... +checking for "pplatex"... yes checking for pLaTeX, the Japanese LaTeX... +checking for "platex"... yes '\\win.desy.de\home\fwilde\Application Data\LyX2.1' CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory. platex: The memory dump file could not be found. platex: Data: platex.fmt Traceback (most recent call last): File "C:/Program Files (x86)/LyX 2.1/Resources/configure.py", line 1536, in LATEX = checkLatex(dtl_tools) File "C:/Program Files (x86)/LyX 2.1/Resources/configure.py", line 506, in checkLatex ''') File "C:/Program Files (x86)/LyX 2.1/Resources/configure.py", line 32, in writeToFile file = open(filename, 'w') IOError: [Errno 13] Permission denied: 'chklatex.ltx' ..\..\..\src\support\Systemcall.cpp (292): Systemcall: 'python -tt "C:/Program Files (x86)/LyX 2.1/Resources/configure.py" --binary-dir="C:/Program Files (x86)/LyX 2.1/bin/"' finished with exit code 1 Calling python -tt "C:/Program Files (x86)/LyX 2.1/Resources/configure.py" --binary-dir="C:/Program Files (x86)/LyX 2.1/bin/" oth works fine. I gave almost every Permissions to everyone in C:/Program Files (x86)/LyX 2.1 and can write file there. So, somethings is very wrong with my installation I can't figure out what that is. Does anyone have an idea what is going on? Cheers, Fabian