Wine在CentOS 7-64位下安装全过程

CentOS 7下安装最新的Wine(wine1.7.33)可谓一波三折,对于我这种菜鸟级别的人来说,真不好装!不过好在终于能够使用了。下面记录安装过程:以后有时间在详细叙说安装的各个步骤:

CentOS 7安装可以仿照:The right way to install Wine on CentOS 6 64bit 里面给出了详细步骤,下面就是仿照其安装的!

[johnnyhu@localhost 下载]$ su root
密码:
[root@localhost 下载]# wget http://citylan.dl.sourceforge.net/project/wine/Source/wine-1.7.33.tar.bz2
[root@localhost 下载]# tar -xf wine-1.7.33.tar.bz2
[root@localhost 下载]# yum -y groupinstall 'Development Tools'
[root@localhost 下载]# yum -y install libX11-devel freetype-devel
[root@localhost 下载]# 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 portaudio-devel.i686 openal-soft-devel.i686 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 openal-soft-devel.i686 libX11-devel.i686 docbook-utils-pdf libtextcat tex-cm-lgc

[root@localhost 下载]# 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 openal-soft-devel openal-soft-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 libmpg123-devel.i686


[root@localhost 下载]# ls
FoxitReader-v1.1.zip  PDFStudio_v9_2_1_linux64.sh  wine-1.7.15  wine-1.7.15.tar.bz2  wine-1.7.33  wine-1.7.33.tar.bz2
[root@localhost 下载]# cd
[root@localhost ~]# mkdir wine64
[root@localhost ~]# ls
anaconda-ks.cfg  initial-setup-ks.cfg  perl5  wine64
[root@localhost ~]# cd wine64
[root@localhost wine64]# /home/johnnyhu/下载/wine-1.7.33/configure --enable-win64
[root@localhost wine64]# make > make.log 2>&1

[root@localhost wine64]# cd
[root@localhost ~]# mkdir wine32
[root@localhost ~]# ls
anaconda-ks.cfg  initial-setup-ks.cfg  perl5  wine32  wine64
[root@localhost ~]# cd wine32
[root@localhost wine32]# /home/johnnyhu/下载/wine-1.7.33/configure --enable-win32
[root@localhost wine32]# make > make.log 2>&1
[root@localhost wine32]# make install
[root@localhost wine32]# cd
[root@localhost ~]# cd wine64
[root@localhost wine64]# make install
[root@localhost wine64]# cd /home/johnnyhu/下载
[root@localhost 下载]# ls
FoxitReader-v1.1.zip  PDFStudio_v9_2_1_linux64.sh  wine-1.7.33
FoxitReader-Win.exe   wine-1.7.15                  wine-1.7.33.tar.bz2
[root@localhost 下载]# wine FoxitReader-Win.exe

注:这里我创建目录win32和win64时一时疏忽建在了root下,其实没必要,建在home下就可以了,好在不影响使用!


2. 以下是中文乱码时各种配置:


//  将simsun.ttc移动到/usr/share/wine/windows/中
[johnnyhu@localhost 下载]$ su root
密码:
[root@localhost 下载]# sudo mkdir -p /usr/share/wine/windows
[root@localhost 下载]# sudo mv simsun.ttc /usr/share/wine/windows/


//  配置Wine中文字体目录
[johnnyhu@localhost ~]$ cd ~/.wine
[johnnyhu@localhost ~]$ cd ~/.wine/drive_c
[johnnyhu@localhost drive_c]$ cd windows
[johnnyhu@localhost windows]$ cd fonts
bash: cd: fonts: 没有那个文件或目录
[johnnyhu@localhost windows]$ mkdir fonts
[johnnyhu@localhost windows]$ ls
command       help    notepad.exe  system32    twain_32.dll  win.ini
explorer.exe  hh.exe  regedit.exe  system.ini  twain.dll     winsxs
fonts         inf     rundll.exe   syswow64    winhelp.exe
Fonts         logs    system       temp        winhlp32.exe
[johnnyhu@localhost windows]$ cd fonts
[johnnyhu@localhost fonts]$ ln -s /usr/share/fonts/windows/simsun.ttc simsun.ttc
[johnnyhu@localhost fonts]$ ln -s /usr/share/fonts/windows/simsun.ttc simfang.ttc
[johnnyhu@localhost fonts]$ su root
密码:
[root@localhost fonts]# gedit ~/.wine/system.reg
[root@localhost fonts]# gedit ~/.wine/drive_c/windows/win.ini

[root@localhost ~]# cp -f /home/johnnyhu/zh.reg  ~/.wine/
[root@localhost ~]# ls ~/.wine
dosdevices  drive_c  system.reg  system.reg~  userdef.reg  user.reg  zh.reg

[root@localhost ~]# cd ~/.wine
[root@localhost .wine]# regedit zh.reg

[root@localhost drive_c]# cp -f /home/johnnyhu/下载/simsun.ttc windows/fonts
[root@localhost drive_c]# cd windows
[root@localhost windows]# ls
command       hh.exe         mono         system32      twain.dll     winsxs
explorer.exe  inf            notepad.exe  system.ini    winhelp.exe
fonts         Installer      regedit.exe  syswow64      winhlp32.exe
Fonts         logs           rundll.exe   temp          win.ini
help          Microsoft.NET  system       twain_32.dll  win.ini~
[root@localhost windows]# cd fonts
bash: cd: fonts: 不是目录

注:wine中文程序安装乱码的问题网上有很多教程,大体类似如:CentOS下Wine乱码解决办法  ,按照上面的,如果不出错的话,大体上就可以了!


3. 下面安装附件:

wine mono的安装 系统弹框之后自动安装完成,gecko 则自动安装失败,改手动安装。
//  安装win_gecko
[johnnyhu@localhost 下载]$  wget http://downloads.sourceforge.net/project/wine/Wine%20Gecko/2.34/wine_gecko-2.34-x86.msi
[johnnyhu@localhost 下载]$ su root
密码:
[root@localhost 下载]# sudo mkdir -p /usr/share/wine/gecko
[root@localhost 下载]#  sudo mv wine_gecko-2.34-x86.msi /usr/share/wine/gecko/
[root@localhost 下载]# ls /usr/share/wine/gecko/
wine_gecko-2.34-x86.msi
[root@localhost 下载]#

注:等所有的这些都完成之后,理论上点击右上脚的“应用程序” 里面会有wine 出现,这时就可以正常使用Wine了!

GOOD LUCK TO YOU!微笑



你可能感兴趣的:(centos,安装,乱码,64位,wine,7)