Re: cannot confiogure lyx on WinXP
Stephen Harris wrote: Very well done! It has been a most excellent adventure. I learned something about what dv2dt.exe and dt2dt.exe do to earn their keep. PS: Nevertheless I'll try the new_msys-1.0.dll too and give you a feedback on that matter. I have made an msys installation and copied the new-msys-1.0.dll to that installation and renamed it to mysy-1.0.dll. Then I added the msys directory to the PATH and reconfigured LyX. I had no more problems to run the script and the LyX installtion works fine without cygwin too. You will need the msys sh.exe (sed.exe) too and temporarily take Cygwin out of the path and put the directory with the msys file into the path. I think you may be right about the configuration only having been partially completed because if you have ghostscript and gsview installed, the installation should find gsview as your postscript viewer (Cygwin has gv) and did Tools->Tex Information populate with all the .cls files? My LyX will many class files and if you click on show path, next to latex classes, it will report ...\texmf if you used the default for Miktex. Yes, I see there a long list of cls files all of them with the correct paths. If your install of LyX doesn't display those .cls files then getting msys to work becomes more important, because it is possible the .cls files won't be available for your LyX document. From my lyxrc \path_prefix "C:\msys\1.0\bin;C:\Python24;C:\texmf\miktex\bin; C:\gs\gs8.51\bin;C:\ImageMagick" There is an interesting thing, all these Paths point to C: and not to the correct directories, nevertheless Acrobat and Yap are starteed witout problems. Why this ? The place to edit Path prefix is under Tools->Preferences ->Paths click on it with the mouse to select Paths The Path prefix is to the right of this and should have C:\texmf\miktex\bin; Only substitute your drive letter P:? and your installation directory for texmf\miktex\bin When you edit this, then Apply and Save become active, and you should Save the change if you need to append Miktex to your Path prefix statement. This works just as well as adding to the Windows path statement. I mention this in case your Tex Information doesn't populate and display all your .cls files. Let me know. Regards, Stephen All the things I mentioned above, I did with the admin account. The first test as normal user leads to the next problems. - I cannot start Acrobat - there is no corresponding entry in the properties. IMHO the entries in lyxrc.defaults shopuld be available for all users ? - And even if I enter acrobat ther and set the paths as you explainde, Acrobat is still not started. But the export ist done correctly. But - success, success - clicking the DVI icon opens yap showing the file formatted. And I can list all the cls files with correct paths too. I think there is another problem, viewing the docu (formatted) as normal user, as lyx (or who ever) tries to save the intermediate file in Resouurce/docs where only admin has write access. -- Gerhard
Re: WG: cannot confiogure lyx on WinXP
Hi Stephen Well, I think it is because the cygwin sh.exe and the msys sh.exe are not the same. I probably mentioned that earlier when I suggested taking Cygwin out of the windows Path. sed.exe can be a problem. But this way can work but takes more effort. To start with something easy, let us try pdflatex. Do you have Acrobat Reader installed? Then go to Tools->Preferences->left-click on File formats and then scroll down to PDF (pdflatex) in the window that opens to the right. In Viewer: which is to the right, type in acrord32, Apply and Save Close LyX and then open. I think you will have a pdflatex viewer. Maybe you might have to Reconfigure, which is also under Tools. Close LyX and reopen. I did the test with Acrobat Reader (it was not autoconfigured) and it did not work. I checked the paths shown in lyxrc.defaults and set them to the correct locations (it seems that there is still a problem in the configuration). Another test started Acrobat and loaded the file correctly - yeah !!!. The next test was of course to use dvi viewer yap. There I got again the python message and a backtrace on the shell. I mentioned that I had removed dv2dt.exe and dt2dv.exe from the bin directory too (when I removed all the msys files). After copying them back from the backup yap started as well. So I have to thank you a lot for your help and the tips you gave me. Now I can start working with lyx :- And I'm sure I'll enjoy it vey much -- Gerhard PS: Nevertheless I'll try the new_msys-1.0.dll too and give you a feedback on that matter
Re: cannot confiogure lyx on WinXP
Stephen Harris wrote: Gerhard Schaffer wrote: Stephen Harris wrote: You could put LyX in the Path. I don't think that is the problem anymore. I was not talking about the Path envVar when I wrote: Do you have a CYGWIN environment variable such as CYGWIN=ntsec? If so, remove it, then try again. Right-click on My Computer -> Properties -> Advanced -> Environment variables check on user and system for an environment variable that has cygwin in the specification. This can happen if someone else has used the computer besides you. There are several environmental variables besides the Path displayed under Environmental variables. Do you see Cygwin mentioned? How large is your msys-1.0.dll file? 791,368 new-msys-1.0.dll ? http://blog.gmane.org/gmane.comp.gnu.mingw.msys The Msys directory is installed when you download and install Msys. The Winlyxinstaller doesn't download Msys, it includes the needed files. So you don't have an Msys directory. When I wrote about the Msys directory I wasn't sure at that time you didn't have that directory. I checked my system and I did not find another sh.exe or sed.exe. But I have found a cygwin1.dll, which was installed with Acronis (a disk imaging software). Renaming this file does not change the situation,when I start sh.exe. There is no CYGWIN EnvVar on my system, neither in my enviroment nor in the system environment. The msys-dll installed with lyx has the following details 16.03.2004 13:32 789.320 msys-1.0.dll I just installed msys and started sh.exe in the msys\1.0\bin directory and it shows exactly the same error message: P:\Utility\Latex\msys\1.0\bin>sh AllocationBase 0x0, BaseAddress 0x715B, RegionSize 0x4D, State 0x1 P:\Utility\Latex\msys\1.0\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 6 In the msys-installation ths msys-dll shows the same details as the on in the lyx installation (as mentioned above). When I examine the dependencies of sh.exe only msys-1.0.dll, kernel32.dll and user32.dll are shown. Hmmm. Perhaps Paul's idea has some merit. P:\Utility\Latex\msys\1.0\bin\sh.exe: "I just installed msys and started sh.exe in the msys\1.0\bin" Is LyX installed on C: or P: Is your hard drive normally labelled P: If not is there a P: drive on your network assuming you are on a network. If you do have a P: drive on a network and that is not the name of your hard drive label, try disconnecting from the P: drive and installing LyX. I am still looking for the cause of the conflict. I've seen errors like this because the developer, Angus, for the WinLyx version, built the release on his J: drive. Then people for some reason had trouble installing LyX if they were connected to a J: drive on a network, or had a USB device named J: The fix was to disconnect that J: drive unitl after the LyX installation. I'm hoping that your P: drive falls under the solution to the J: drive problem. Lastly and minorly, are both your machines 32 bit not 64 bit? Regards, Stephen Drive P is my local program partition, it is not a network device. But I' ve tried to install lyx, ... on drive C too - with the same problems. I found the tip to remove a J drive - and did it, as I had a network drive J connected (only at my user account - no admin rights) and not at the admin's account under which I install lyx. The Win2k machine has an AMD 64 bit processor but a 32 bit OS version. The WinXP machine is a laptop with Pentium M technology (thus "full" 32 bit) -- Gerhard
Re: cannot confiogure lyx on WinXP
Stephen Harris wrote: You could put LyX in the Path. I don't think that is the problem anymore. I was not talking about the Path envVar when I wrote: Do you have a CYGWIN environment variable such as CYGWIN=ntsec? If so, remove it, then try again. Right-click on My Computer -> Properties -> Advanced -> Environment variables check on user and system for an environment variable that has cygwin in the specification. This can happen if someone else has used the computer besides you. There are several environmental variables besides the Path displayed under Environmental variables. Do you see Cygwin mentioned? How large is your msys-1.0.dll file? 791,368 new-msys-1.0.dll ? http://blog.gmane.org/gmane.comp.gnu.mingw.msys The Msys directory is installed when you download and install Msys. The Winlyxinstaller doesn't download Msys, it includes the needed files. So you don't have an Msys directory. When I wrote about the Msys directory I wasn't sure at that time you didn't have that directory. I checked my system and I did not find another sh.exe or sed.exe. But I have found a cygwin1.dll, which was installed with Acronis (a disk imaging software). Renaming this file does not change the situation,when I start sh.exe. There is no CYGWIN EnvVar on my system, neither in my enviroment nor in the system environment. The msys-dll installed with lyx has the following details 16.03.2004 13:32 789.320 msys-1.0.dll I just installed msys and started sh.exe in the msys\1.0\bin directory and it shows exactly the same error message: P:\Utility\Latex\msys\1.0\bin>sh AllocationBase 0x0, BaseAddress 0x715B, RegionSize 0x4D, State 0x1 P:\Utility\Latex\msys\1.0\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 6 In the msys-installation ths msys-dll shows the same details as the on in the lyx installation (as mentioned above). When I examine the dependencies of sh.exe only msys-1.0.dll, kernel32.dll and user32.dll are shown. -- Gerhard
Re: cannot confiogure lyx on WinXP
That means you probably dont have Msys in your Windows PATH, or you have Cygwin in your PATH, which has a different version of sh.exe, before Msys. This advice is about if you have used the installer where you download the needed helper programs. OTOH, the LyXWinInstaller provides the Msys version of sh.exe So if you used that version, temporarily remove Cygwin from your path. Suppose that you have Msys etc installed in C:\Msys\1.0\bin and bin is where sh.exe is located. Then you should try [using the dos cmd prompt] you would be in your ~lyx\resources\lyx directory which contains the configure file, and type in "C:\Msys\1.0\bin\sh.exe configure" from you resources directory which contains configure (but no quotes when you type it) from the lyx\resources\lyx directory. For LyX 1.3.7, \lyx\resources\ contains the configure file for 1.4.1 For "me" this looks like: C:>\Lyx\resources\lyx> C:\msys\1.0\bin\sh.exe configure But you want to substitute your actual installation location, maybe c:\program files\lyx\resources\lyx, in place of "my" location, or in 1.4.1 ~\lyx\resources (A lyx sub-directory is no longer used.) I will summarize: Temporarily take Cygwin out of the Windows PATH. From the directory which contains your configure file, type the full path to the sh.exe file configure then for example type from C:>\Lyx\resources C:\msys\1.0\bin\sh.exe configure for LyX1.4.1 Use the directories and paths for your system, which will likely not be exactly the same as mine. You want to avoid using Cygwin unless you are doing a WinCygLyx installation. I do not understand where thze msys directory should be. sh.exe is in my case located in ...\lyx141\bin. There no path entry to this directory. But I cannot start sh from that directory. There was only one entry made in the PATH EnvVar during installation pointing to miktex\bin I checked my complete system disc and there is only the sh.exe in the lyx141\bin directory. There I found a dll called msys-1.0.dll too. What other directories should be added to the PATH EnvVar ? -- Gerhard
Re: cannot confiogure lyx on WinXP
Uwe Stöhr wrote: Gerhard Schaffer schrieb: But the problem is, that I cannot start sh and get an error message P:\Utility\LaTex\LyX141\bin>sh AllocationBase 0x0, BaseAddress 0x715B, RegionSize 0x4D, State 0x1 P:\Utility\LaTex\LyX141\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 6 that means that you've installed cygwin and that the cygwin version of the sh.exe interfers with the one delivered with the installer. You don't need cygwin for LyX. If possible deinstall it, deinstall also LyX completely after that, reboot and then reinstall LyX. This should fix your problem. regards Uwe No I do not have an installation of cygwin on that machine I did some more test: - even if I remove %PATH% and start sh from the lyx141\bin directory I get the same error message - I tried an installation on a Win2K machine and it works without any problem - I copied all the exe and dll files from that installation to the first machine but there I get still the same error message and I cannot start sh -- Gerhard
cannot confiogure lyx on WinXP
I try to install Lyx 1.4.1 (Setup 2.1 complete) on a WinXP system, but Lyx is not configured during the installation. As described at the homepage I tried to configure Lyx by entering the command 'sh configure'. But the problem is, that I cannot start sh and get an error message P:\Utility\LaTex\LyX141\bin>sh AllocationBase 0x0, BaseAddress 0x715B, RegionSize 0x4D, State 0x1 P:\Utility\LaTex\LyX141\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 6 What can I do to be able to configure Lyx anyway ?