How to Install Wine 1.7.34 on CentOS, RHEL and Fedora

Why use Wine:

With the increasing popularity of Linux desktops, There is another requirement occurred that we should have a application which can be used to run windows applications. Windows has a long list of beautiful applications for users which is not available for Linux users. As we know that Linux does not support windows executable so WineHQ is a solution to run windows applications and Linux systems.

Wine 1.7.34 Development Release has been released on January 9, 2015. 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.34 Development Release on RHEL based systems.

Installing Prerequisite

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

Installing Wine

RPM packages for wine are not available for latest versions, So we need to download wine source code. Use below commands to download it. 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.

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

Configure wine using one of following command based on your system architecture.

On 32-Bit Systems:
# ./configure

On 64-Bit Systems:
# ./configure  --enable-win64

Finally compile wine source with make command

# make
# make install

Check Wine Version

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

On 32-Bit Systems:
# wine --version

On 64-Bit Systems:
# wine64 –version

How to Use Wine

To use wine we need to login on GUI desktop. After that Download a windows executable (.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.

35 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

  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??

  24. Actually I wanted to run vlc and for that I need to install wine. After following steps, it is working successfully. Thanks for sharing with us.

  25. Hi Rahul,

    Thanks for this excellent article – I hope you will be able to help:
    – I have followed steps above methodically for OS Linux 6.6 64bit
    – Everything seems to be installed perfectly as I went through all the steps without any issues
    – However I could not run wine64 -version (single dash) or wine -version, wine64 –version returns wine-1.7.34
    – When I double clicked on .exe file nothing happens (including putty.exe)
    – I tried right clicked on “open with wine windows program loader” it is not doing anything too
    – I then tried command wine64 (as wine itself is not a recognisable command) start /Unix “$root/Desktop/putty.exe” it gives error “Application could not be started, or no application associated with the specified file. ShellExecuteEx failed: Internal error.”

    Can you please help?

    Thanks,

    Jed

Leave a Reply

 

Support us!

If you like this site please help and make click on any of these buttons!

×