Steps to Install Wine 1.7.33 (Development Release) on CentOS, RHEL and Fedora

Wine is an Open Source implementation of the Windows API and will always be free software. Approximately half of source code is written by its volunteers, and remaining effort sponsored by commercial interests, especially CodeWeavers.

winehq_logo_glass

The Wine team has announced the newer Version 1.7.33 Development has been released on December 12, 2014. The main highlights of this release are full support for window transparency, and the new Mono package for .NET applications support.

This article will help you to install Wine 1.7.33 Development Release on RHEL based systems.

What’s new in this release:

    • Support for copy/paste commands in MSHTML.
    • Some more font support in DirectWrite.
    • Better handling for loss of focus in Direct3D windows.
    • Several more API Sets DLLs.
    • Various bug fixes.
    • Read more…

Step 1: Install Required Packages

Wine required many development packages, So we need to install required packages for Wine using yum package manager using following commands.

# yum groupinstall 'Development Tools'
# yum install libX11-devel freetype-devel zlib-devel libxcb-devel

Step 2: Download and Extract Wine Package

RPM packages for wine are not available for latest versions, So we need to download wine source code. Use below commands to download it.

# cd /usr/src
# wget  http://prdownloads.sourceforge.net/wine/wine-1.7.33.tar.bz2
# tar xjf wine-1.7.33.tar.bz2

Note: This is not a stable release. This version is development release. Use this download link to download stable release and remaining steps will be same.

Step 3: Install Wine

To compile wine using source packages, first login to root account and execute following commands in wine source code. Installation may take approx 30 minutes.

On 32-Bit Systems:

# cd wine-1.7.33/
# ./configure
# make
# make install

On 64-Bit Systems:

# cd wine-1.7.33/
# ./configure  --enable-win64
# make
# make install

Step 4: Check Version

Use following command to check version of wine installed on your system

On 32-Bit Systems:

# wine --version 

wine-1.7.33

On 64-Bit Systems:

# wine64 –version

wine-1.7.33

Step 5: How to Use Wine

To use wine we need to login on GUI desktop. After that Download a windows exe file like PuTTY on your system and open it with Wine as below screenshot or use following command.

# wine putty.exe

wine-install

Rahul

Founder of TecAdmin.net. I love to work with Linux and other open source application. Also I like to share knowledge with my friends and other Linux users. Follow me on Twitter, Add me on Google+ or Like Facebook page.

31 Comments

  1. Good work sir. Thanks for helpful material you have provided for resolving my wine. Keep good work.

  2. this does not work in 64bit Linux machines. when compiling. it gives a error unable to compile 32bit program. needs 32bit libraries.

  3. On 64bits OS add –enable-win64 before make
    $ ./configure –enable-win64

  4. Step 4:
    For 32-Bit Systems:
    # wine –version
    For 64-Bit Systems:
    # wine64 –version

  5. Thank you so much for this article! It’s the only one I’ve been able to find that works, after a long week of searching for answers! You should package this somehow and get CentOS to include it in their next build! (I’m new, so I don’t know if that’s possible, but if it is, you should!) Thank you!!!

  6. configure: error: X development files not found. Wine will be built
    without X support, which probably isn’t what you want. You will need
    to install development packages of Xlib/Xfree86 at the very least.
    Use the –without-x option if you really want this.

    when I’m trying to build on 64bit centos

    • Hi Mesaj,

      It looks you do not have installed X Window on your system. So install it first.

      For CentOS/RHEL 6:
      # yum groupinstall “Desktop”

      For CentOS/RHEL 5:
      # yum groupinstall “GNOME Desktop Environment”

      • and how to install X Window on Debian Wheezy?
        I have same problem with Mesaj
        ————–
        configure: error: X development files not found. Wine will be built
        without X support, which probably isn’t what you want. You will need
        to install development packages of Xlib/Xfree86 at the very least.
        Use the –without-x option if you really want this.

  7. root@michelsons Reply to root@michelsons

    i m a beginner to RHEL i want to ask i have created yum server on my system using my DVD
    as soon as i input yum command for the group install it shows
    ‘Setting up Group Process
    Warning: Group Development tools does not exist.
    No packages in any requested group available to install or update’
    please solve my issue

  8. No work for me, i have centos 6.5 64 bit,
    my aplications open and close automatic
    i install all ok but dnt work
    need previus versions install to install this?

  9. Does not work for me.

    Followed every step, everything seemed to work, but then I get this:

    [root@fir wine-1.7.19]# /usr/src/wine-1.7.19/wine –version
    wine: could not find the Wine loader in /usr/src/wine-1.7.19

  10. According to the README file I need to run.

    ./tools/wineinstall

    But when I try, I get this:

    > The source directory is not writable. You probably extracted the sources as root.
    > You should remove the source tree and extract it again as a normal user.

    I don’t understand. This tutorial shows doing everything as root. What exactly is involved in
    “remove the source tree and extract it again” ?

    Shouldn’t I be able to just do a chown, and a chmod?

    When I try to run wine as root I get:

    > You are running wineinstall as root, this is not advisable. Please rerun as a user.
    > Aborting.

    Any advice?

  11. Hello sir,
    I sucessfully installed wine but run wine –version command them it showing command not found.

  12. Hi, sir
    am new bea for redhat linux6…before installation wine package is neccessary to install any “Development tool” or libx11-devel*** package but i tried with yum install utility but it shown me “No Package available”…..where should i get these packages….please suggest me.

  13. Kamran Tayyab Reply to Kamran

    Hey I get this error;

    configure: WARNING: prelink not found, base address of core dlls won’t be set correctly.

    configure: WARNING: libxrender 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: libxslt development files not found, xslt won’t be supported.

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

    configure: WARNING: libjpeg development files not found, JPEG won’t be supported.

    configure: WARNING: libpng development files not found, PNG won’t be supported.

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

    Could you help me solve this? Thanks

  14. G Murakami Reply to G

    I am running 64bit RHEL but want to make the 32 bit version of wine. What is the procedure for that?

  15. how to uninstall wine? I followed the steps on Centos 6.5 final 64bit but when i tried checking the version it says

    [root@superserver wine-1.7.23]# wine
    bash: wine: command not found

  16. Hello,
    the line *# ./configure –enable-win64*
    give me this answer : “configure: error: no suitable flex found. Please install the ‘flex’ package.”
    then, make and make install answer “makefile hasn’t been found”…
    thx you

  17. Doesn’t work on CentOS 7 64bit, unable to run any EXE. :(

  18. how to install ip msg in redhat linux?

  19. vaibhav atalkar Reply to vaibhav

    grate it’s work
    thank you very much …….

  20. Hi,

    I am beginner to linux, It shows an error message “not acceptable C compiler found in $PATH”.

    Pls suggest me.
    Thanks in advance

  21. Hi, I have a question: How long?… I mean, I’ve did it some hours ago, but it sill doing that:
    (insert a lot of code here LOL)
    ../../tools/winegcc/winegcc -o ieframe.dll.fake -B../../tools/winebuild -fasynchronous-unwind-tables -shared ieframe.spec \
    classinfo.o client.o dochost.o events.o frame.o ie.o ieframe_main.o iehtmlwnd.o iexplore.o \
    intshcut.o navigate.o oleobject.o persist.o shellbrowser.o shelluihelper.o urlhist.o view.o \
    webbrowser.o ieframe.res ieframe_v1_t.res ieframe_v1_r.res -luuid -lurlmon -lshell32 -lcomctl32 \
    -lshlwapi -loleaut32 -lole32 -luser32 -lgdi32 -ladvapi32 -lwine ../../libs/port/libwine_port.a -lm \

    make[1]: Leaving directory `/usr/src/wine-1.7.28/dlls/ieframe'
    config.status: creating dlls/ieframe/tests/Makefile
    make[1]: Entering directory `/usr/src/wine-1.7.28/dlls/ieframe/tests'
    gcc -c -o ie.o ie.c -I. -I../../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe \
    -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \
    -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith \
    -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O2
    gcc -c -o intshcut.o intshcut.c -I. -I../../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe \
    -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \
    -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith \
    -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O2
    gcc -c -o webbrowser.o webbrowser.c -I. -I../../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe \
    -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body -Wignored-qualifiers \
    -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla -Wwrite-strings -Wpointer-arith \
    -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O2" etc...

    Thanks =)

  22. Syber Raith Reply to Syber

    GNUTLS headers are being found although GNUTLS libraries are evading detection. They are located on my system in /usr/lib/x86_64-linux-gnu, and even with the LDFLAGS or GNUTLS_LIBS environment varible set to that directory, configure still fails to find the libraries.

    I am building with Debian Jessie on an AMD64 system.
    I have installed debian packages for:
    libgnutls-deb0-28
    libgnutls-openssl27
    libgnutlsxx28
    libgnutls28-dev

  23. Rohit Khirid Reply to Rohit

    bzip2: (stdin) is not a bzip2 file.
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now

    How do i go about this??

Leave a Reply