首先下载wine:
sudo apt-get install wine-stable
然后使用wine安装安装包EXE文件(安装包你自己去下):
wine EasyConnectInstaller.exe
EasyConnect会自动安装好,此时在桌面上会看到一个EasyConnect图标。
不过因为直接点桌面的图标不能看到哪里出错了,所以我们先
使用 wine 在他安装好的位置运行:
wine /home/wang/.wine/drive_c/Program\ Files\ \(x86\)/Sangfor/SSL/SangforCSClient/SangforCSClient.exe
但是会提示缺少DLL文件的错误信息:
DbgPrint says: CmRegisterCallback return faild c0000002failed to create driver L"SangforDnsDrv_7,1,0,2": c0000002
003a:err:module:import_dll Library fwpkclnt.sys (which is needed by L"C:\\Program Files (x86)\\Sangfor\\SSL\\TcpDriver\\SangforTcpDrv.sys") not found
003a:err:winedevice:async_create_driver failed to create driver L"SangforTcpDrv_6,9,0,0": c0000142
0042:err:module:import_dll Library fwpkclnt.sys (which is needed by L"C:\\Program Files (x86)\\Sangfor\\SSL\\SdDriver\\SgfSdDrv.sys") not found
0042:err:winedevice:async_create_driver failed to create driver L"SD_drvsvr_6,3,0,1": c0000142
0009:err:module:import_dll Library MFC42.DLL (which is needed by L"C:\\Program Files (x86)\\Sangfor\\SSL\\SangforCSClient\\SangforCSClient.exe") not found
0009:err:module:attach_dlls Importing dlls for L"C:\\Program Files (x86)\\Sangfor\\SSL\\SangforCSClient\\SangforCSClient.exe" failed, status c0000135
这里提示缺少的两个文件是:
- fwpkclnt.sys
- MFC42.DLL
然后去windows系统里面找这两个文件,放到~/.wine/drive_c/(此目录对应windows系统下的C盘)目录下对应的位置。
再重新运行 EasyConnect 文件。
发现运行成功,如图所示:
原文地址:https://www.cnblogs.com/zifeiy/p/9420347.html
时间: 2024-10-11 07:45:16