wineHQ安装VC6

来源:互联网 发布:九阴真经帅哥捏脸数据 编辑:程序博客网 时间:2024/05/29 13:54
 在使用Wine安装使用 Windows软件时,会经常需要用到一些dll库文件。 方法一是从Windows下copy一份到Wine的system32目录下; 方法二是用Winetricks,它可以帮助我们安装所需要的dll库。 Winetricks的使用方法如下:(普通用户) 1、下载Winetricks    wget http://www.kegel.com/wine/winetricks        #Wget是一个在网络上进行下载的简单而强大的自由软件 2、添加可执行属性    chmod +x winetricks   #修改为可执行    sudo mv winetricks /usr/local/bin    #将winetricks复制到/usr/local/bin,则可以在终端使用winetricks 3、查看帮助系统    ./winetricks --help (或者 winetricks –help)      #查看帮助和其所包含的套件 4、执行winetricks    ./winetricks (或者 winetricks)      #带有gui界面,可查看所包含的套件列表    在图形界面,您可以选择您所需要得windows软件和windows下的动态链接库安装 5、安装示列    ./winetricks mfc42 (或者 winetricks mfc42)      #安装mfc42库


Category: Main > Programming / Software Engineering > Visual C++ > 6.0


NameVisual C++Version6.0LicenseRetailURLhttp://msdn.microsoft.com/visu...Votes1RatingBronzeWine Version1.2.2
Debugging works
View/Submit Screenshot
Maintainers of this version:
  • bobo
  • Anastasius Focht
Description

Microsoft's classic win9X-era version of Visual C++.

Still in use for some shipping retail apps twelve years later! 

Old test results
The test results for this version are very old, and as such they may not represent the current state of Wine. Please consider submitting a new test report.
Selected Test Results (selected in 'Test Results' table below)

What works

I used it to modify and rebuild a number of complex applications, even depending on third party library and DLL, and almost all seams to work fine.

  • edit code, with facilities like auto-completion and source browsing
  • edit visual resources
  • compile and link 


What does not
Trying to save a project or workspace, the IDE always crashes. It means it is not possible to add new files, or change project settings from within the IDE


What was not tested
I never tried to debug software


Additional Comments

Test Results
DistributionTest dateWine versionInstalls?Runs?RatingSubmitterCurrentUbuntu 10.04 "Lucid" i386 (+ variants like Kubuntu)May 16 20111.2.2 Yes Yes Bronze an anonymous user ShowFedora 8Nov 02 20081.1.5 Yes Yes Platinum an anonymous user ShowGentoo Linux AMD64Aug 09 20081.1.2 Yes Yes Silver Jazz ShowUHU-Linux 1.1 "Kamion"Jul 15 20060.9.12. N/A Yes Gold an anonymous user ShowFedora Core 4Mar 13 20060.9 N/A Yes Silver an anonymous user 

Known bugsBug #DescriptionStatusResolutionOther apps affected9153midl generates wrong output, keeps Visual C++ 6 from working properlyNEW View15039MSVC 6: Menu popdowns too narrow for arrowsNEW View16069VC6 debugging not working when Windows version is 98NEW View
Show all bugs

Native alternatives

Native alternatives for non-windows platforms:- Anjuta


HOWTO

Make sure you operate on a clean WINEPREFIX (~/.wine)!


Prerequisite installation by using 'winetricks' script

Winetricks will take care of needed installation prerequisites and work around s­ome installer problems. 

$ wget http://kegel.com/wine/winetricks­

$ sh winetricks -q vcrun6 mfc40 

Install steps to work around some bugs 

After winetricks step start "winecfg" tool and select "Windows 98" from Windows Version Listbox. Press "Apply" button. Press "Ok" button.

Now you may run the installer. The installer might crash when trying to install the required 'virtual machine for java(bug 18097). Ignore this and upon "reboot" when asked to install DCOM98, uncheck the box and let the installer proceed.

After the installation is finished, change the Windows version back to default (Windows XP). 


Installing with Wine Windows versions set to NT4/2K/XP

Because bug 5322 will proba­bly stand a long time, I present another method.

1.) Save the following snippet to a text file, for example "vc6-installer-fix":

set $x=0x410000 set $end=0x420000 while(*++$x != 0x07B0B18B && $x < $end) end if $x != $end set *(int*) $x = 0x5BC0335E set *(int*)($x+4) = 0x900004C2 end handle SIGSEGV pass nostop noprint handle SIGTRAP nopass nostop noprint cont

2.) run the following command, assuming you saved the snippet to "vc6-installer-fix":

$ winedbg --gdb setup.exe < vc6-installer-fix

NOTE: If the installer spawns a sub-installer that crashes due to this bug, you must first run the main installer and then attach to sub-installer with debugger.

This can be done in automated way (assuming the main installer has already started sub-installer):

$ winedbg --gdb $(( 16#$(winedbg --command "info proc" | grep your-sub-installer-process-name | cut -f 2 -d " ") )) < vc6-installer-fix­

It tells winedbg to query process ids, filters out the target process, converts the PID to decimal and then starts winedbg in gdb proxy mode, attaching to target process and executing patch script. 

This should work for all VC6 installers and even Embedded Visual C++ 4.x ones.

What does it do?

Basically it starts the installer under control of a debugger and the works around bug 5322 by in-memory patching execution flow. 

NOTE: This method is not recommended for the average user!

我已经按照winehq成功安装了,编译helloworld也通过了 :em09 
根据我的经验,一定要先删除.wine文件夹,重新winecfg才行
dcom98千万不要勾选,安装成功后运行提示一个dll有问题,但是不影响运行,替换dll以后就完美了
附件:
VC2.png 
VC2.png [ 53.44 KiB | 被浏览 1079 次 ]


http://forum.ubuntu.org.cn/viewtopic.php?f=121&p=1077390

    不要使用root安装,普通用户权限即可,安装过程中会有提示要用到root权限.

    我的电脑是配置:

    cpu:AMD Mobile Athlon Xp 2500+

    显卡:ATI Mobility Radeon 9000 64M

    可惜显卡的linux下的驱动没有找到,wine装好后,配置winecfg提示:

    libGL warning: 3D driver claims to not support visual 0x4b

    libGL warning: 3D driver claims to not support visual 0x4b

    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet

    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet

winetricks corefonts vcrun6 



_________________________________________________________________________________________________________________________________

Wine提供了一个用来运行Windows程序的平台。
PlayOnLinux 是使用 Python 写成的Wine图形化前端。

本篇幅主要介绍 PlayOnLinux 的用法。

因为图片太多,上传太麻烦,所以本文是无图版的;如果有需要全文连图片的,请告诉我,我会发出来。

软件介绍

wine

Wine提供了一个用来运行Windows程序的平台。Wine(Wine Is Not an Emulator的缩写,即Wine不仅仅是一个模拟器)是一个在X-Windows和Unix上执行的Windows APIs(应用程序接口),也可以认为Wine是一个Windows兼容层。

PlayOnLinux

PlayOnLinux 是使用 Python 写成的图形化前端,主要用来辅助 Wine 在 Linux 中安装面向 Windows 平台的程序和游戏,如 M$ Office 2003。另外,此程序也支持使用 Dosbox 来安装基于 Dos 的程序和游戏。

PlayOnLinux 包括如下特点:
§ 允许每个安装的程序有自己的 wineprefix 和目录;
§ 能够模拟重启;
§ 包含针对游戏的 Directx 安装选项;
§ 可以执行显卡测试 (使用 Glxgears、Glxmux 等);
§ 可以更新安装脚本;
§ 可以指定 Wine 版本;
§ 可以指定 Wine 的 git 版本;
§ 能够自动建立桌面快捷方式。

PlayOnLinux 的意义

使用playonlinux的意义就在于,能够给每个程序一个独立的wine磁盘和配置文件,可以让你很方便地跟踪解决兼容性问题,并很方便地添加一些dll之类的。

毕竟,Wine 使用起来是很烦琐的,至少我一直没太搞懂过。
 

PlayOnLinux 安装和启动


安装

Debian 仓库中包含了 PlayOnLinux 的包,可以直接安装:

$ sudo apt-get install playonlinux ttf-mscorefonts-installer

安装信息

正在读取软件包列表... 完成正在分析软件包的依赖关系树正在读取状态信息... 完成       下列软件包是自动安装的并且现在不需要了: gnash-common libboost-program-options1.49.0 libboost-thread1.49.0Use 'apt-get autoremove' to remove them.将会安装下列额外的软件包: wine wine-bin:i386建议安装的软件包: ttf-mscorefonts-installer libwine-print:i386下列【新】软件包将被安装: playonlinux wine wine-bin:i386升级了 0 个软件包,新安装了 3 个软件包,要卸载 0 个软件包,有 42 个软件包未被升级。需要下载 0 B/1,846 kB 的软件包。解压缩后会消耗掉 4,031 kB 的额外空间。您希望继续执行吗?[Y/n]ySelecting previously unselected package wine-bin.(正在读取数据库 ... 系统当前共安装有 190850 个文件和目录。)正在解压缩 wine-bin (从 .../wine-bin_1.4.1-4_i386.deb) ...Selecting previously unselected package wine.正在解压缩 wine (从 .../wine_1.4.1-4_amd64.deb) ...Selecting previously unselected package playonlinux.正在解压缩 playonlinux (从 .../playonlinux_4.1.1-1_all.deb) ...正在处理用于 mime-support 的触发器...正在处理用于 man-db 的触发器...正在处理用于 desktop-file-utils 的触发器...正在处理用于 gnome-menus 的触发器...正在处理用于 menu 的触发器...正在设置 wine-bin (1.4.1-4) ...update-binfmts: warning: /usr/share/binfmts/wine: no executable /usr/bin/wine-auto found, but continuing anyway as you requestupdate-alternatives: using /usr/bin/wine32 to provide /usr/bin/wine (wine) in 自动模式update-alternatives: 警告: skip creation of /usr/share/man/fr.UTF-8/man1/wine.1.gz because associated file /usr/share/man/fr.UTF-8/man1/wine32.1.gz (of link group wine) doesn't existupdate-alternatives: 警告: skip creation of /usr/share/man/de.UTF-8/man1/wine.1.gz because associated file /usr/share/man/de.UTF-8/man1/wine32.1.gz (of link group wine) doesn't existupdate-alternatives: 警告: skip creation of /usr/share/man/pl.UTF-8/man1/wine.1.gz because associated file /usr/share/man/pl.UTF-8/man1/wine32.1.gz (of link group wine) doesn't exist正在设置 wine (1.4.1-4) ...正在设置 playonlinux (4.1.1-1) ...正在处理用于 menu 的触发器...

从安装信息可以看出,由于 PlayOnLinux 依赖于 Wine ,所以安装时会自动安装 Wine,无须干预。

其中,ttf-mscorefonts-installer 是字体库,如果没有安装该字体库,启动 PlayOnLinux 时会有警告提示。

启动

从应用程序列表(在有些Linux系统中,该程序会出现在 "游戏" 栏里)中找到 "PlayOnLinux" 或 在终端中键入命令:

$palyonlinux &

启动程序
程序首次启动会有一些提示信息,一直 "Next" 进入通用界面

通过 PlayOnLinux 安装软件或游戏

该软件的操作其实并不复杂,常用的几个功能是:
"Run" 运行选中的软件,必须先在"已安装的软件列表"中选择一项才可以执行
"Install"  安装新的软件或游戏
"Remove"  卸载选中的软件
"Configure"  为选中的软件配置Wine版本或增加DLL库等等
"Shortcut"  为已安装的软件创建桌面(Linux下的)快捷方式

常用功能中,Run/Remove/Shortcut 这几个功能的操作是一目了然的,基本上只要顺着提示就没有问题;所以本文将略过这几项,重点介绍软件安装和配置。

PlayOnLinux 中有一个"源",这个"源"并不是软件仓库的源,而是聚集Windows App安装脚本的源,是由爱好者或开发人员加入的。
目前的版本(4.1.1)中,这个"源"已经包含了 Office 2007/2010 等等最新的Windows软件安装脚本。

从 PlayOnLinux 仓库中安装软件或游戏

这里以安装 Office 2007 为例。
从"Install" 的弹出菜单开始,

1.选择 Office 2007 安装脚本

图3:选择 Office 2007 安装脚本
图3中的①和② 选择了 Office 2007 的安装脚本
注意:这里说的是脚本,而不是安装程序,因为后面还要使用本机的安装程序
③说明了这个脚本并不支持 Office 2007 套件中的 Access/Groove/Outlook,所以安装时应不要选择这三项内容
④本步骤的最后一步就是点击 "Install"

2.创建虚拟磁盘

接着上一步,在"Install"之后,会跳出一个有关 Office 2007 的安装提示,"Next" 会跳出下一页,这一页不需要操作,页面上提示说明在这里为安装 Office 2007 创建一个虚拟磁盘

3.选择安装源文件

上一步创建虚拟磁盘后自动跳出安装源文件选择界面
这里提示:哪里是 CDROM 的挂载点?
所以接下来就是要处理 Office 2007 的光盘或者映像文件;如我的IMG被挂载到usb0上,这里就要"usb0",然后点"Next"。
《Debian/Linux 设备挂载》,这里不再赘叙。
如果不想用光盘或映像文件来处理,那么这一步应该点"取消"。

4.安装 Office

如果映像被正确加载,会弹出 Office 的安装界面
这里,可能会出现乱码的问题,这可能是因为虚拟磁盘中此时还没有安装相应的字体导致;不过,因为所熟悉,所以"盲"操作还是可以的;
如果确实不能忍受,请在此时参考下方的章节 <乱码修正>。

5.下载必须的一些windows文件

在 Office 安装完成后, PlayOnLinux 还需要下载一些 windows 文件,以支持 Office 套件
这里没有任何问题,只是花点时间而已。

6.完成安装

上面所有步骤完成后,PlayOnLinux 主界面下有增加了 Office 套件程序。
至此 Office 2007 就成功安装了。

从本地硬盘的安装文件安装软件

这里以安装 QQ2012Beta3 为例。
Wine QQ 其实是挺不好弄的,尤其是 QQ2013 版本,怎么都弄不好。网络上挺多人说有别人弄好的 QQ2012 , 所以就换这个版本来试试。

1.新建驱动器

为了不和其他程序产生干扰,所以新建一个驱动器,Wine 版本选择 1.5.30。
在安装之前先建驱动器是为了避免安装时候的乱码显示并且方便先安装一些基础包。
从 "Configure" 界面的 "New" 创建一个新的驱动器(这里如果不清楚,请参照下方的 <Configure 主界面>)
创建驱动器时,应设置为 "32 bits windows installation", Wine 版本选择 1.5.30。如果Wine 版本没有 1.5.30的话,可以选择其他的试一下,或者通过 PlayOnLinux 的主菜单 "Tools" -> "Manage wine versions" 安装 1.5.30 版本。
接下来是设定驱动器的名称,名称可以任意,只要不和原有的驱动器重复就没问题。

2.在新驱动器中安装所需的包

在驱动器创建后,可能会提示安装 wine mono,这一步我没有取消,不确定不安装是否可以。
接下来进入"Configure" 的 "Install Packages" 配置页,安装以下包:
· gdiplus  
· msvc80  
· msxml3  
· riched20  
· riched30  
· vcrun6  
· vcrun2005
这一步很重要,否则QQ无法正常运行

3.乱码修正

参考下面的章节 <修正乱码>

4.启用 PlayOnLinux 的本地安装流程

从 PlayOnLinux 的 "Install" 进入,选择 左下角的"Install a non-listed program"
因为之前已经创建了新的驱动器,所以接下来应选择 "Edit or update an existing application",然后选择之前创建好的驱动器;这时,已经不需要再为驱动器的Wine 和 依赖包做更改,所以驱动器的Wine 配置项可以都忽略。

这一步的最后,应该选择 QQ 2012 Beta3 的安装文件

5.安装 QQ

这里和Windows 下安装QQ没什么两样。
如果没有经过乱码修正步骤,这里的安装界面可能会是乱码。
只是,在QQ 安装结束后,还有一个 PlayOnLinux 页面还在一直不停地转啊转的,没有关系,果断 "取消",不影响。

6.运行 QQ

经过上面的几个步骤,QQ已经安装完成了,但是很惊讶地发现,PlayOnLinux 界面上并没有 QQ 的启动方式。怎么办?
不着急,这时只要简单地操作下,就可以把QQ找出来了。

进入 "Configure",左边的驱动器选择之前安装了QQ的驱动器,"General" 配置页点击 "Make a new shortcut from this virtual drive" 按钮,跳出一个软件列表界面。
在这个程序列表中找到 "QQ.exe", "Next" 后会问你是否要重命名快捷方式,不要的话可以直接 "Next"。
这个时候快捷方式就创建好了,在 PlayOnLinux 主界面中已经可以看到了。
但是还有一个像上图的程序列表跳出来,这时候取消就好了,因为已经不需要再创建快捷方式了。

在 PlayOnLinux 中选中 "QQ.exe" 或双击,就可以打开熟悉的 QQ 登录界面了。

打开本地硬盘中的绿色软件

如果是绿色版软件,想要通过 PlayOnLinux 打开,有两种方法:

1.使用 "Install a non-listed program"

虽然是绿色免安装版本,同样可以用"Install a non-listed program" 的方法使其执行一次。
这种方法的缺点是只能执行一次,不方便创建快捷方式。

2.使用 "Make a new shortcut from this virtual drive"

将绿色软件整个复制到某个驱动器的 "drive_c/Program Files" 目录下,然后像上个例子中创建 QQ 快捷方式的方法,就可以创建快捷方式并方便以后执行了。
 

PlayOnLinux 的配置

配置主界面

从 PlayOnLinux 主界面的 "Configure" 进入
Configure 主要有三部分:
① 驱动器及已创建快捷方式的程序列表
② 操作按钮:
    "New"  新建驱动器(drive)
    "Remove"  卸载驱动器或者移除应用程序快捷方式
③ 驱动器配置选项页

下面将介绍驱动器的配置页面

"General"

通用配置中包括:

  • "Make a new shortcut from this virtual drive"  创建应用程序快捷方式
  • “Name"  修改驱动器名称  
  • "Wine version"  Wine 版本

"Wine"

Wine 配置页主要有:

  • "Configure Wine"  Wine配置
  • "Registry Editor"  注册表修改
  • "Windows reboot"  重启Windows
  • "Repair virtual drive"  修复驱动器
  • "Command prompt"  运行命令行
  • "Task manager"  任务管理器
  • "Kill processes"  结束进程
  • "Wine uninstaller"  软件安装/卸载

"Install Packages"

该页主要是用于安装一些 PlayOnLinux 预设的 Windows 库,该功能需要网络支持。
当要安装某个包时,只要选中后,点击 "Install" 即可。

"Display"

略,很少修改,可能Wine游戏时会用到

"Miscellaneous"

该页中常用的是 "Open virtual drive's directory" ,可以方便地进入驱动器根目录。

修正乱码

PlayOnLinux 在安装有些软件,如 Office / QQ 等时,安装界面有些会显示乱码,不利于安装。
比如上例安装 Office 2007 时,安装界面可能会是乱码
修正乱码其实不难,步骤如下:

1.获取字体文件 simsun.ttc

从现有的 Windows 系统(目录c:/windows/fonts/)或网上下载获得字体文件 simsun.ttc,将这个文件复制到该驱动器的 drive_c/windows/Fonts/ 目录下。

为正确指向该目录,可以从 PlayOnLinux 的 "Configure" 进入,选定正确的驱动器,然后选择"Miscellaneous"页,如下图,点击"Open virtual drive's directory" 即可打开相应的驱动器根目录,再按"drive_c/windows/Fonts/"这个路径依次找到该文件夹。

2.修改注册表

同样在"Configure"界面,选择"Wine"页,点击"Registry Editor" 打开该驱动器注册表文件。
然后,修改注册表,

[HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]## 修改:MS Shell Dlg = SimSunMS Shell Dlg 2 = SimSun## 新建字符串:Tahoma = SimSun

 

3.重新打开 Office 安装

取消当前安装步骤,然后重复之前的步骤到安装应用程序这步,可以发现乱码已经被修正了。


___________________________________________________________________________________________________________



首先,到终端输入命令YUM REMOVE WINE,我的是FC9,其他版本没有用过,所以暂时不清楚

然后,系统提示卸载完成,但是我们还是会发现,在应用程序中依然由wine的存在

为了将WINE彻底的删除,我们再次来到终端,并输入whereis wine,这个命令的作用就是查找wine这个文件或者是目录,在接下来终端会列出一些目录

CD到这些目录中,一个个的删除吧

等到所有的WINE的文件都删除以后,就还剩下应用程序中的那个图标了。我们选择系统------>首选项------->观感----->主菜单,在主菜单的界面上我们会看到wine的名字,我们右击它,然后点击删除

这样,我们就将wine完全的删除了。

根据删除wine的过程,我个人认为,在LINUX下所有的文件都是可以按照这个步骤来删除的。当然,这个限于FC9,至于其他的版本我还没有接触到。




删除wine菜单残余项

这种问题主要发生在,用wine到uninstaller卸载程序后,不想要到程序还是在 wine到菜单里,看着不舒服。执行以下操作:
cd ~/.local/share/applications/wine/Programs/,然后删除不想要的文件;然后在cd ~/.config/menus/applications-merged/,然后删除对应的文件即可。


删除wine菜单里的残留项  

2009-08-24 21:48:36|  分类:Linux技术文章 |举报|字号 订阅

wine安装了几个windows下的软件,运行出错,卸载后其快捷方式还在wine的菜单里。不爽,上网找到清理办法:
到~/.local/share/applications/wine/Programs/下rm掉多余的菜单项,这样“其他”里就没东西了
然后再到~/.config/menus/applications-merged/下去清理多余的垃圾。

这下整个世界清静了

ubuntu下删除wine菜单

 jcmatio发布于 2008-9-16 | 1792次阅读  字号: 大 中 小  (网友评论 1 条) 我要评论
试用了一下wine发现并不是很好用,决定删除:

系统-》首选项-》主菜单,取消wine的打勾选项

(1)删除~/.config/menus目录下的相应wine文件

(2)删除~/.config/menus/applications-merged/wine*

(3)删除 /usr/share/app-install/desktop/wine.*

(4)删除下面三个目录下与wine相关的内容:
~/.local/share/applications/
~/.local/share/desktop-directories/
~/.local/share/icon/


0 0
原创粉丝点击