问题描述
我正在尝试使用 wine 运行 Windows 程序(Janome Customizer)。\n我有一个“开箱即用”的 Ubuntu 64 位 12.04 安装,并且刚刚运行软件中心来更新所有软件包。
Customizer 安装顺利,然后我运行该程序,出现一个窗口,但单击按钮时没有任何反应。因此,我使用在 wine 安装的快捷方式中找到的内容来运行该程序:
john@mylaptop:~$ env WINEPREFIX="/home/john/.wine" wine "C:\\windows\\command\\start.exe" /Unix "/home/john/.wine/dosdevices/c:/users/Public/Desktop/JANOME Customizer.lnk"
我收到两个警告:
fixme:exec:SHELL_execute flags ignored: 0x00000100
fixme:exec:SHELL_execute flags ignored: 0x00004100
出现定制程序窗口,当我单击按钮时,会打印此错误:
err:module:import_dll Library MFC42.DLL (which is needed by L"C:\\\\Program Files (x86)\\\\janome\\\\Customizer 10000 Plus\\\\MC9500\\\\MkStitch.dll") not found
err:module:import_dll Library MkStitch.dll (which is needed by L"C:\\\\Program Files (x86)\\\\janome\\\\Customizer 10000 Plus\\\\MC9500\\\\EasyImport95.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\\\Program Files (x86)\\\\janome\\\\Customizer 10000 Plus\\\\MC9500\\\\EasyImport95.exe" failed, status c0000135
因此我在 google 上搜索了这个错误,并尝试使用 winetricks 安装 mfc42,但出现了以下错误:
john@mylaptop:~$ winetricks mfc42
Executing w_do_call mfc42
Executing load_mfc42
Executing mkdir -p /home/john/.cache/winetricks/vcrun6
Downloading
http://download.microsoft.com/download/vc60pro/update/1/w9xnt4/en-us/vc6redistsetup_enu.exe
to /home/john/.cache/winetricks/vcrun6
--2012-07-28 08:58:50--
http://download.microsoft.com/download/vc60pro/update/1/w9xnt4/en-us/vc6redistsetup_enu.exe
Resolving download.microsoft.com (download.microsoft.com)... 158.255.97.16,
158.255.97.65
Connecting to download.microsoft.com
(download.microsoft.com)|158.255.97.16|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-07-28 08:58:51 ERROR 404: Not Found.
------------------------------------------------------
Downloading
http://download.microsoft.com/download/vc60pro/update/1/w9xnt4/en-us/vc6redistsetup_enu.exe
failed
------------------------------------------------------
我尝试使用其他 Google 搜索结果手动安装 mfc42,但无济于事。我更愿意使用 winetricks。如果我无法使用 winetricks 完成此操作,那么手动安装属于另一个问题。
为了确保万无一失,我尝试使用 Ubuntu 12.04 32 位在 Live CD(实际上是 USB 密钥)上启动。通过软件中心安装了 wine,但运行 winetricks mfc42
时出现相同的错误。
有趣的是,在我每天使用的另一台计算机上,插入同一个互联网路由器,安装 mfc42 可以正常工作:
11:35:45 ~>winetricks mfc42
p11-kit: couldn't load module: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/i386-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
Executing /usr/bin/cabextract -q /home/jrouquie/.cache/winetricks/vcredist.exe -d /home/jrouquie/.wine/dosdevices/c:/windows/system32 -F mfc42u.dll
Using native,builtin override for following DLLs: msvcrt
Executing early_wine regedit c:\winetrickstmp\override-dll.reg
Install of mfc42 done
winetricks done.
11:36:29 ~>winetricks mfc42
prerequisite vcrun6 already installed, skipping
Install of mfc42 done
winetricks done.
11:46:00 ~>
感谢您对安装 mfc42 的任何帮助。
最佳方案
添加来自:http://www.winehq.org/download/ubuntu 的 Wine PPA 为我解决了这个问题。
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update && sudo apt-get upgrade
winetricks mfc42
次佳方案
由于某些原因,winetricks mfc42
无法工作。
找到了从 here 下载 mfc42.dll 的替代方法。希望该链接足够安全。