博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
wine32和wine64共存编译安装方法
阅读量:5894 次
发布时间:2019-06-19

本文共 2917 字,大约阅读时间需要 9 分钟。

当前系统环境:Centos 6.3 64位

因为博主要在linux系统运行apk工具aapt.exe所以就安装了wine

此次安装过程同时编译了32和64版本的wine。

wine32和wine64共存编译过程如下:

安装依赖

安装所需要的依赖包(这些依赖包安装时间跟自己的当前网络和机器配置有关,博主不喜欢在yum的时候加-y选项,所以yum后请手动y确认安装。)

yum groupinstall 'Development Tools'

yum install libX11-devel freetype-devel zlib-devel libxcb-devel

yum install alsa-lib-devel.i686 libsndfile-devel.i686 readline-devel.i686 glib2.i686 glibc-devel.i686 libgcc.i686 libstdc++-devel.i686 pulseaudio-libs-devel.i686 cmake audiofile-devel.i686 freeglut-devel.i686 lcms-devel.i686 libieee1284-devel.i686 openldap-devel.i686 unixODBC-devel.i686 sane-backends-devel.i686 fontforge libgphoto2-devel.i686 isdn4k-utils-devel.i686 mesa-libGL-devel.i686 mesa-libGLU-devel.i686 libXxf86dga-devel.i686 libXxf86vm-devel.i686 giflib-devel.i686 cups-devel.i686 gsm-devel.i686 libv4l-devel.i686 fontpackages-devel ImageMagick-devel.i686 libX11-devel.i686 docbook-utils-pdf libtextcat tex-cm-lgc

yum install alsa-lib-devel audiofile-devel.i686 audiofile-devel cups-devel.i686 cups-devel dbus-devel.i686 dbus-devel fontconfig-devel.i686 fontconfig-devel freetype.i686 freetype-devel.i686 freetype-devel giflib-devel.i686 giflib-devel lcms-devel.i686 lcms-devel libICE-devel.i686 libICE-devel libjpeg-turbo-devel.i686 libjpeg-turbo-devel libpng-devel.i686 libpng-devel libSM-devel.i686 libSM-devel libusb-devel.i686 libusb-devel libX11-devel.i686 libX11-devel libXau-devel.i686 libXau-devel libXcomposite-devel.i686 libXcomposite-devel libXcursor-devel.i686 libXcursor-devel libXext-devel.i686 libXext-devel libXi-devel.i686 libXi-devel libXinerama-devel.i686 libXinerama-devel libxml2-devel.i686 libxml2-devel libXrandr-devel.i686 libXrandr-devel libXrender-devel.i686 libXrender-devel libxslt-devel.i686 libxslt-devel libXt-devel.i686 libXt-devel libXv-devel.i686 libXv-devel libXxf86vm-devel.i686 libXxf86vm-devel mesa-libGL-devel.i686 mesa-libGL-devel mesa-libGLU-devel.i686 mesa-libGLU-devel ncurses-devel.i686 ncurses-devel openldap-devel.i686 openldap-devel openssl-devel.i686 openssl-devel zlib-devel.i686 pkgconfig sane-backends-devel.i686 sane-backends-devel xorg-x11-proto-devel glibc-devel.i686 prelink fontforge flex bison libstdc++-devel.i686 pulseaudio-libs-devel.i686 gnutls-devel.i686 libgphoto2-devel.i686 isdn4k-utils-devel.i686 gsm-devel.i686 samba-winbind libv4l-devel.i686 cups-devel.i686 libtiff-devel.i686 gstreamer-devel.i686 gstreamer-plugins-base-devel.i686 gettext-devel.i686

下载Wine

mkdir wine cd wine wget tar -xf wine-1.8.4.tar.bz2
我这里将wine下载到了/root/wine文件夹内

安装Wine

这里使用源码编译,根据电脑配置不同,编译时间也不同
mkdir -p /root/wine/wine64 (我这里故意写了个绝对路径) cd /root/wine/wine64 ../wine-1.8.4/configure --enable-win64 make -j 4 (-j 4根据cpu数量填写,要是不懂就直接make) cd .. mkdir wine32 cd wine32 ../wine-1.8.4/configure --enable-win32 make -j 4 make install cd ../wine64 make install
至此wine安装完成,可以直接使用wine,winecfg,winefile命令
如果需要运行Windows软件的话,需要完善软件所需的环境。

 

附:查看CPU方法:

直接使用命令lscpu显示CPU简要信息
也可以用cat /proc/cpuinfo

 

转载地址:http://dnssx.baihongyu.com/

你可能感兴趣的文章
将HTML特殊转义为实体字符的两种实现方式
查看>>
System.Func<>与System.Action<>
查看>>
asp.net开源CMS推荐
查看>>
csharp skype send message in winform
查看>>
MMORPG 游戏服务器端设计--转载
查看>>
安装系统字体
查看>>
SILK 的 Tilt的意思
查看>>
Html学习笔记3
查看>>
HDFS dfsclient写文件过程 源码分析
查看>>
关于多线程的那些事
查看>>
JavaScript获取DOM元素位置和尺寸大小
查看>>
EL 表达式小结
查看>>
内部排序
查看>>
jQuery EasyUI API 中文文档 - 组合(Combo)
查看>>
10个关于 Dropbox 的另类功用(知乎问答精编)[还是转来了]
查看>>
Oracle体系结构
查看>>
javascript Error对象详解
查看>>
nc 局域网聊天+文件传输(netcat)
查看>>
每天一个linux命令(25):linux文件属性详解
查看>>
go微服务框架go-micro深度学习(三) Registry服务的注册和发现
查看>>