How to install wine in centos 7

//make sure if development tools are installed

 [root@mylap softwares]# yum grouplist
.
.


[root@mylap softwares]# yum install libX11-devel freetype-devel zlib-devel libxcb-devel

[root@mylap softwares]# wget https://dl.winehq.org/wine/source/2.0/wine-2.0.2.tar.xz
.
.
[root@mylap softwares]# wget https://downloads.sourceforge.net/project/wine/Source/wine-2.0.1.tar.xz?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fwine%2F&ts=1515487331&use_mirror=excellmedia

[root@mylap softwares]# wget https://dl.winehq.org/wine/source/2.0/wine-2.0.2.tar.xz

[root@mylap softwares]# tar xf wine-2.0.2.tar.xz -C /tmp/

[root@mylap softwares]# cd /tmp/wine-2.0.2/
[root@mylap wine-2.0.2]# ls
aclocal.m4  AUTHORS    configure.ac  dlls           fonts    libs     LICENSE.OLD  MAINTAINERS  po        README  tools
ANNOUNCE    configure  COPYING.LIB   documentation  include  LICENSE  loader       Makefile.in  programs  server  VERSION

[root@mylap wine-2.0.2]# ./configure
.
.
.
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.
[root@mylap wine-2.0.2]# ./configure --enable-win64
.
.
configure: libldap (OpenLDAP) 64-bit development files not found, LDAP won't be supported.

configure: WARNING: libxrender 64-bit development files not found, XRender won't be supported.

configure: WARNING: No OpenGL library found on this system.
OpenGL and Direct3D won't be supported.

configure: WARNING: libxml2 64-bit development files not found (or too old), XML won't be supported.

configure: WARNING: libxslt 64-bit development files not found, xslt won't be supported.

configure: WARNING: libgnutls 64-bit development files not found, no schannel support.

configure: WARNING: libjpeg 64-bit development files not found, JPEG won't be supported.

configure: WARNING: libpng 64-bit development files not found, PNG won't be supported.

configure: WARNING: No sound system was found. Windows applications will be silent.

configure: Finished.  Do 'make' to compile Wine

[root@mylap wine-2.0.2]# ./configure --enable-win64
.
.
.
gcc -m64 -o wineserver-installed async.o atom.o change.o class.o clipboard.o completion.o console.o debugger.o device.o \
  directory.o event.o fd.o file.o handle.o hook.o mach.o mailslot.o main.o mapping.o mutex.o \
  named_pipe.o object.o process.o procfs.o ptrace.o queue.o region.o registry.o request.o \
  semaphore.o serial.o signal.o snapshot.o sock.o symlink.o thread.o timer.o token.o trace.o \
  unicode.o user.o window.o winstation.o \
  -Wl,--rpath,\$ORIGIN/`../tools/makedep -R /usr/local/bin /usr/local/lib64` -Wl,--enable-new-dtags \
  ../libs/port/libwine_port.a -lwine -L../libs/wine
gcc -m64 -o wineserver async.o atom.o change.o class.o clipboard.o completion.o console.o debugger.o device.o \
  directory.o event.o fd.o file.o handle.o hook.o mach.o mailslot.o main.o mapping.o mutex.o \
  named_pipe.o object.o process.o procfs.o ptrace.o queue.o region.o registry.o request.o \
  semaphore.o serial.o signal.o snapshot.o sock.o symlink.o thread.o timer.o token.o trace.o \
  unicode.o user.o window.o winstation.o -Wl,--rpath,\$ORIGIN/../libs/wine \
  ../libs/port/libwine_port.a -lwine -L../libs/wine
make[1]: Leaving directory `/tmp/wine-2.0.2/server'
Wine build complete.


[root@mylap wine-2.0.2]# make

[root@mylap wine-2.0.2]# make install

[root@mylap wine-2.0.2]#yum install wine  //default wine package

//now we can access wine from applications

[root@mylap wine-2.0.2]# wine --version
wine-2.0.3

Post a Comment

0 Comments