onecoolcouple
2009-Feb-03 13:36 UTC
[Wine] Re: Cannot run Win16 installer for Judaic Classics
Thank you. Unfortunately, I bit more than I can swallow. I redirected the output of strace to a file, but it has more than 22k lines. How do I sensibly winnow that down? I have never used strace before and the output is overwhelming. Alternatively/additionally, is there something similar for windows, which I can use to check what happens under windows, with a functioning copy of the program I am researching? --OCC
On 2009-02-03 (Tuesday) 13:36:07 onecoolcouple wrote:> Thank you. Unfortunately, I bit more than I can swallow. I redirected the > output of strace to a file, but it has more than 22k lines. How do I > sensibly winnow that down?I'm not sure because you didn't give command you have used, you didn't mention what parameters for grep you have used (if you didn't used grep to filter strace output or used it improperly you will get much less useful output), you didn't mentioned what shell you are using and what OS. I provide few more examples, perhaps they help you to understand what to do. To record into log.txt what files *with* an extension (except ones with .dll, .exe, .sys, .drv, .tmp, .ttf, .lnk and .fon extensions) the application tries to use on virtual C:\ disk (located in Wine prefix) run this: For bash (in zsh you can replace "2>&1|" with "|&" but this isn't really necessary): strace wine notepad 2>&1| \ egrep -i 'stat(64)\(".*?(/c:/|/drive_c/).*?\..*?"' | \ egrep -vi '(\.dll|win.ini|wininit.ini|\.exe|\.sys|\.drv|\.fon|\.tmp|\.ttf|\.lnk|\.windows-|desktop.ini|system.ini)' > log.txt Or: WINEDEBUG=+file wine notepad 2>&1| \ egrep -i 'L"C:\\.*?\..*?"' | \ egrep -vi '(\.dll|win.ini|wininit.ini|\.exe|\.sys|\.drv|\.fon|\.tmp|\.ttf|\.lnk|\.windows-|desktop.ini|system.ini|\*\.\*)' > log.txt Note: Both commands are multi-line commands. To use them simply copy-paste all 3 lines to your console and press Enter; egrep filters in above commands will also filter out useless stuff like use of "desktop.ini" or "win.ini" files. Instead of "notepad" use name of your application. Don't use [Ctrl]+[C] in the console (or you may lose your log); exit from the application properly instead (or kill it with xkill). If you want to see files without extension too (including directories) then remove ".*?\." from second line. If you want to see files from all drives then replace "C:\\" in second line with "?:\\" or (for strace example) "(/c:/|/drive_c/)" with "(/?:/|/cdrom/|/mnt/|/media/)". If you still need help, please answer to questions above and explain what you are looking for (do you expect the file you want to find to have an extension, do you expect to find it in drive_c, and other possibly useful information) and I may give you egrep filters you need if above filters aren't suitable for you and you don't know how to change them.> Alternatively/additionally, is there something similar for windows, > which I can use to check what happens under windows, with a > functioning copy of the program I am researching?Sorry, but I'm not a Windows expert. I never tried to debug anything in Windows so I don't know. If above tricks with strace or WINEDEBUG=+file don't help you I recommend you to reinstall your application in clean Wine prefix with latest Wine (1.1.14). For example: rm -rf ~/.wine Or: mv ~/.wine{,.old} And then run winecfg, configure your CD/DVD-ROM as CD-ROM in winecfg and then install your application. If still doesn't work, is there any change in behavior or errors the application gives you after (possibly unsuccessful) installation in clean Wine?
Gert van den Berg
2009-Feb-03 19:03 UTC
[Wine] Cannot run Win16 installer for Judaic Classics
On Tue, Feb 3, 2009 at 3:36 PM, onecoolcouple <wineforum-user at winehq.org> wrote:> Alternatively/additionally, is there something similar for windows, which I can use to check what happens under windows, with a functioning copy of the program I am researching? >Filemon and regmon from here: (They may / may not work under Wine and may / may not be legal to use under Wine without a Windows license) http://technet.microsoft.com/en-us/sysinternals/cb56073f-62a3-4ed8-9dd6-40c84cb9e2f5.aspx