Cannot find 'MFC42.DLL' - Problems installing Windows app

Questions about Wine on macOS.
Locked
grace_lao
Level 1
Level 1
Posts: 6
Joined: Tue Dec 06, 2011 8:49 am

Cannot find 'MFC42.DLL' - Problems installing Windows app

Post by grace_lao »

I'm trying to install a Windows application using Wine, but I'm running into some difficulties.

The .exe file is in my Documents
($) cd Documents
($) wine [File name].exe
then X11 launches, but I receive this message: Cannot find 'MFC42.DLL'. Please, re-install this application.
Terminal says: fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot

Any ideas on how to troubleshoot?

Thanks!
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Cannot find 'MFC42.DLL' - Problems installing Windows app

Post by jjmckenzie »

On Tue, Dec 6, 2011 at 6:59 AM, grace_lao <[email protected]> wrote:
I'm trying to install a Windows application using Wine, but I'm running into some difficulties.

The .exe file is in my Documents
($) cd Documents
($) wine [File name].exe
then X11 launches, but I receive this message: Cannot find 'MFC42.DLL'. Please, re-install this application.
Terminal says: fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot

Any ideas on how to troubleshoot?
Please use winetricks to install this missing dll file.
http://wiki.winehq.org/winetricks. Product is a third party
application, but limited support is available here, but if something
does not work please file an issue at the location pointed to on the
Wiki Page.

James
grace_lao
Level 1
Level 1
Posts: 6
Joined: Tue Dec 06, 2011 8:49 am

Post by grace_lao »

I went to http://wiki.winehq.org/winetricks, and I downloaded winetricks (which to clarify, didn't register as a .dmg) and ran it on through the terminal control. After executing the previous, I still receive the same problem (cannot find 'MFC42.DLL') even when following the directions on using winetricks and attempting to install the .dll.

I apologize if this is the wrong forum to post these problems. If it is, please direct me to the correct website to post these queries. Thank you!
John Drescher

Cannot find 'MFC42.DLL' - Problems installing Windows app

Post by John Drescher »

On Tue, Dec 6, 2011 at 9:33 AM, grace_lao <[email protected]> wrote:
I went to http://wiki.winehq.org/winetricks, and I downloaded winetricks (which to clarify, didn't register as a .dmg) and ran it on through the terminal control. After executing the previous, I still receive the same problem (cannot find 'MFC42.DLL') even when following the directions on using winetricks and attempting to install the .dll.

I apologize if this is the wrong forum to post these problems. If it is, please direct me to the correct website to post these queries. Thank you!

When you ran winetricks did you tell it to install mfc42?

John
grace_lao
Level 1
Level 1
Posts: 6
Joined: Tue Dec 06, 2011 8:49 am

Post by grace_lao »

Yes, I tried.

Opened Terminal Control
($) cd Documents
($) sh winetricks mfc42
X11 opened, and I received the following in Terminal Control:
Executing w_do_call mfc42
Executing load_mfc42
------------------------------------------------------
Cannot find cabextract. Please install it (e.g. 'sudo apt-get install cabextract' or 'sudo yum install cabextract').
------------------------------------------------------

After that I tried ($) sh winetricks cabextract - no idea if that is the correct move, especially since TC then said "Unknown arg cabextract."

Did not know how to proceed after that.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

grace_lao wrote: ------------------------------------------------------
Cannot find cabextract. Please install it (e.g. 'sudo apt-get install cabextract' or 'sudo yum install cabextract').
------------------------------------------------------

After that I tried ($) sh winetricks cabextract - no idea if that is the correct move, especially since TC then said "Unknown arg cabextract."

Did not know how to proceed after that.
Proceed by doing exactly what winetricks told you to do: install cabextract using the appropriate command for your distro.
grace_lao
Level 1
Level 1
Posts: 6
Joined: Tue Dec 06, 2011 8:49 am

Post by grace_lao »

Yes, that is what I attempted to do, but I am not sure what the appropriate command to install cabextract would be for my distro. Any suggestions would be much appreciated! This is what I tried:

($) cd Documents
($) sh winetrcks mfc42
Executing w_do_call mfc42
Executing load_mfc42
------------------------------------------------------
Cannot find cabextract. Please install it (e.g. 'sudo apt-get install cabextract' or 'sudo yum install cabextract').
------------------------------------------------------
($) sh winetricks cabextract

Unfortunately, I was met by the following:

Unknown arg cabextract
Usage: winetricks [options] [command|verb|path-to-verb] ...
Executes given verbs. Each verb installs an application or changes a setting.

Options:
--force Don't check whether packages were already installed
--gui Show gui diagnostics even when driven by commandline
-k, --keep_isos Cache isos (allows later installation without disc)
--no-clean Don't delete temp directories (useful during debugging)
--no-isolate Don't install each app or game in its own bottle
-q, --unattended Don't ask any questions, just install automatically
-r, --ddrescue Retry hard when caching scratched discs
--showbroken Even show verbs that are currently broken in wine
-v, --verbose Echo all commands as they are executed
-h, --help Display this message and exit
-V, --version Display version and exit

Commands:
list list categories
apps list list verbs in category 'applications'
benchmarks list list verbs in category 'benchmarks'
dlls list list verbs in category 'dlls'
games list list verbs in category 'games'
settings list list verbs in category 'settings'
list-cached list cached-and-ready-to-install verbs
list-download list verbs which download automatically
list-manual-download list verbs which download with some help from the user
list-installed list already-installed verbs
prefix=foobar select WINEPREFIX=/Users/ginnylaub/.local/share/wineprefixes/foobar
John Drescher

Cannot find 'MFC42.DLL' - Problems installing Windows app

Post by John Drescher »

On Tue, Dec 6, 2011 at 10:45 AM, grace_lao <[email protected]> wrote:
Yes, that is what I attempted to do, but I am not sure what the appropriate command to install cabextract would be for my distro. Any suggestions would be much appreciated! This is what I tried:
Ask your distro.
($) cd Documents
($) sh winetrcks mfc42
Executing w_do_call mfc42
Executing load_mfc42
------------------------------------------------------
Cannot find cabextract.  Please install it (e.g. 'sudo apt-get install cabextract' or 'sudo yum install cabextract').
------------------------------------------------------
($) sh winetricks cabextract

Unfortunately, I was met by the following:

Unknown arg cabextract
Usage: winetricks [options] [command|verb|path-to-verb] ...
Executes given verbs.  Each verb installs an application or changes a setting.
cabextract is not something winetricks can install.
grace_lao
Level 1
Level 1
Posts: 6
Joined: Tue Dec 06, 2011 8:49 am

Post by grace_lao »

Thanks for that information, John. I installed cabextract, but I'm still having trouble installing the .dll.

($) sh winetricks mfc42
Executing w_do_call mfc42
Executing load_mfc42
Executing cabextract -q /Users/---------/Library/Caches/winetricks/vcrun6/vcredist.exe -d /Users/---------/.wine/dosdevices/c:/windows/system32 -F mfc42*.dll
dyld: unknown required load command 0x80000022
winetricks: line 256: 21553 Trace/BPT trap "$@"
------------------------------------------------------
Note: command 'cabextract -q /Users/---------/Library/Caches/winetricks/vcrun6/vcredist.exe -d /Users/---------/.wine/dosdevices/c:/windows/system32 -F mfc42*.dll' returned status 133. Aborting.
------------------------------------------------------

Is there anything I can do from this point on?
Charles Davis

Cannot find 'MFC42.DLL' - Problems installing Windows app

Post by Charles Davis »

On Dec 6, 2011, at 9:04 AM, grace_lao wrote:
Thanks for that information, John. I installed cabextract, but I'm still having trouble installing the .dll.

($) sh winetricks mfc42
Executing w_do_call mfc42
Executing load_mfc42
Executing cabextract -q /Users/---------/Library/Caches/winetricks/vcrun6/vcredist.exe -d /Users/---------/.wine/dosdevices/c:/windows/system32 -F mfc42*.dll
dyld: unknown required load command 0x80000022
Ah, you're on a Mac. What version of Mac OS are you running? It looks like it's too old to run the cabextract binary you found--another way of putting this is that the cabextract binary is too new to be run on your Mac OS. You might try building and installing cabextract yourself.

Chip
grace_lao
Level 1
Level 1
Posts: 6
Joined: Tue Dec 06, 2011 8:49 am

Post by grace_lao »

I have Mac OS X, version 10.5.8 (Leopard). Thanks for clarifying that the binary I downloaded may be too new for my current software for it to properly work.

I tried to follow the http://forum.winehq.org/viewtopic.php?t ... 674dee0124 instructions to install cabextract using MacPorts, but I was unsuccessful.

I'm quite new at this, and I have no idea how to go about building cabextract myself. Do you have any suggestions for me?

Much appreciated.
Locked