[posted and mailed] Angus Leeming <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]:
> Paul A. Rubin wrote: >> C:\LyX\Documents>sh C:/LyX/lyx/share/lyx/scripts/convertDefault.sh > Refering to your original error message: > >> sh C:/LyX/lyx/share/lyx/scripts/convertDefault.sh > jpg:C:/LyX/Documents/h >> appy.jpg ppm:C:/LyX/lyx/tmp/lyx_tmpdir2168a01168/happy2168a01168.ppm >> Image conversion failed. >> Unable to find converted file! > > So, what happens if > 1. You remove any existing temporary directories C:/LyX/lyx/tmp/* > 2. start up lyx and create a new file, simply to create the temporary > directory C:/LyX/lyx/tmp/lyx_tmpdir_some_random_number > 3. from the command line try: > sh C:/LyX/lyx/share/lyx/scripts/convertDefault.sh > jpg:C:/LyX/Documents/happy.jpg > ppm:C:/LyX/lyx/tmp/lyx_tmpdir_some_random_number/happy.ppm > > Ie, we're checking that we can actually write to this directory after > all. Works like a charm. The .ppm file is written in the temp directory, alongside the (as yet empty) lyx_tmpbuf0 subdirectory. > Just a second... > Is your shell executable called 'sh' or 'sh.exe'? Can you invoke it > as plain 'sh' or must that be 'sh.exe'? > > I ask because: > 1. I'm an ignorant son of a gun. You know more about Windoze than I know about *nix. :-) > 2. LyX hard codes it as 'sh'. > Just 'sh' works. When Windows sees a command with no extension, it cycles through .exe, .com and .bat (in that order, I think) looking for a program to run. -- Paul
