Tag Archive for 'Wine'

Office 2007 and Wine with dual prefix

When configuring Wine in the form in the previous article, the first prefix created may be 64-bit.  In this situation, e-sword installed correctly.  An issue presented itself when attempting to run Microsoft Office 2007 related to MSXML5 installation.  This issue prevents adding custom buttons to the quick access bar, adding the data analysis add-ons to Excel, and it even prevents saving files in Word or other documents.  The solution for this is creating a second prefix, this one 32 bit.  The prefixes can exist side by side and run programs from each at the same time.   If .wine is a 64 bit prefix, create a new folder, called .wine32, and launch Wine to create the appropriate folder structure.

$ WINEPREFIX=”$HOME/.wine32″ WINEARCH=win32 wine wineboot

Then, to install the app in the 32 bit prefix, use the following while replacing the word username with the actual user name. In this case, the Office 2007 installer was renamed setup.exe.

$ WINEARCH=win32 WINEPREFIX=/home/username/.wine32 wine /home/username/Downloads/setup.exe

This will create the appropriate icons for the software installed into the 32 bit prefix.  Then, it is possible to run programs from the 32 bit prefix (such as Office 2007) and the 64 bit prefix (the default at the time the first application was installed).

Office 2007 running in 32-bit Wine prefix on CentOS 7

32 Bit Wine on CentOS 7

This process is confirmed with Wine 2.0 and CentOS 7 (updated through December 31, 2017).

E-Sword running in 64-bit Wine 2.0 Prefix on CentOS 7

As root:

yum install samba-winbind-clients
yum groupinstall ‘Development Tools’
yum install libjpeg-turbo-devel libtiff-devel freetype-devel
yum install glibc-devel.{i686,x86_64} libgcc.{i686,x86_64} libX11-devel.{i686,x86_64} freetype-devel.{i686,x86_64} gnutls-devel.{i686,x86_64} libxml2-devel.{i686,x86_64} libjpeg-turbo-devel.{i686,x86_64} libpng-devel.{i686,x86_64} libXrender-devel.{i686,x86_64} alsa-lib-devel.{i686,x86_64} glib2-devel.{i686,x86_64} libSM-devel.{i686,x86_64}
yum install glibc-devel libstdc++-devel icoutils openal-soft-devel prelink gstreamer-plugins-base-devel gstreamer-devel ImageMagick-devel fontpackages-devel libv4l-devel gsm-devel giflib-devel libXxf86dga-devel mesa-libOSMesa-devel isdn4k-utils-devel libgphoto2-devel fontforge libusb-devel lcms2-devel audiofile-devel
yum install openldap-devel libxslt-devel libXcursor-devel libXi-devel libXxf86vm-devel libXrandr-devel libXinerama-devel libXcomposite-devel mesa-libGLU-devel ocl-icd opencl-headers libpcap-devel dbus-devel ncurses-devel libsane-hpaio pulseaudio-libs-devel cups-devel libmpg123-devel fontconfig-devel sane-backends-devel.x86_64
yum install glibc-devel.i686 dbus-devel.i686 freetype-devel.i686 pulseaudio-libs-devel.i686 libX11-devel.i686 mesa-libGLU-devel.i686 libICE-devel.i686 libXext-devel.i686 libXcursor-devel.i686 libXi-devel.i686 libXxf86vm-devel.i686 libXrender-devel.i686 libXinerama-devel.i686 libXcomposite-devel.i686 libXrandr-devel.i686 mesa-libGL-devel.i686 mesa-libOSMesa-devel.i686 libxml2-devel.i686 libxslt-devel.i686 zlib-devel.i686 gnutls-devel.i686 ncurses-devel.i686 sane-backends-devel.i686 libv4l-devel.i686 libgphoto2-devel.i686 libexif-devel.i686 lcms2-devel.i686 gettext-devel.i686 isdn4k-utils-devel.i686 cups-devel.i686 fontconfig-devel.i686 gsm-devel.i686 libjpeg-turbo-devel.i686 pkgconfig.i686 libtiff-devel.i686 unixODBC.i686 openldap-devel.i686 alsa-lib-devel.i686 audiofile-devel.i686 freeglut-devel.i686 giflib-devel.i686 gstreamer-devel.i686 gstreamer-plugins-base-devel.i686 libXmu-devel.i686 libXxf86dga-devel.i686 libieee1284-devel.i686 libpng-devel.i686 librsvg2-devel.i686 libstdc++-devel.i686 libusb-devel.i686 unixODBC-devel.i686 qt-devel.i686 libpcap-devel.i686

As normal user:

Download the latest version of wine from WineHq.
Then, extract to a folder. Go into that folder and create two folders, one for 32 bit, and one for 64 bit. Both are required, and 64 bit must be compiled first.

1)  mkdir x86
2)  mkdir amd64
3)  cd amd64
4)  ../configure –enable-win64
5)  make -j 4
6)  cd ..
7)  cd x86
10) PKG_CONFIG_PATH=/usr/lib/pkgconfig ../configure –with-wine64=../amd64
11) make -j 4
12) sudo make install
13) cd ..
14) cd amd64
15) sudo make install

After this, “which wine” shows 32 bit, and “which wine64” shows 64 bit. Now, opening wine setup.exe on a 32 bit app will work correctly.

A more complex shell script for this is discussed hereHere is a screenshot of e-sword working, without any special modifications.