As a Linux user, I must keep a copy of Windows. One reason is that I should edit MS Office files, such as .doc, .ppt, .xls and .xml (office 2003 xml format) required by, created by or for other using Windows. Wine worked for me with Office 2003 ever but has this or that problem. I tried the new version of Wine (1.5.11) on Fedora 17 recently with Office 2007 and it turned out that Office 2007 Enterprise on Wine works great on Linux. I searched the Web and found some tutorials, but it turns out that things are not that complex now. Hence, I note it down in this post.
This is the most tricky part: installing wine.i686 instead of wine.x86_64 which will fails to work even with WINEARCH=win32 set.
# yum install wine.i686
If there are conflicts, you should remove the old wine installations first.
Prepare wine prefix
$ WINEARCH=win32 winecfg
and wine will create a prefix in
My version of wine is set to “Windows XP”.
Install Office 2007
Just as run normal Windows applications:
$ wine setup.exe
Run Office 2007
We can run Office 2007 on Linux with wine now.
Run Word and Excel
To run Word and Excel, no special changes are needed.
$ wine WINWORD.EXE
$ wine EXCEL.EXE
in Office 2007’s installation path which is “.wine/drive_c/Program Files/Microsoft Office/Office12/” by default.
It need a little trick to run powerpoint by overwriting the riched20 DLL libraries.
Run winecfg, in tab “Libraries”, select “riched20” in “New override for library” and click “Add”. The edit the “riched20” overrides to be “native”.
Then you can run powerpoint:
$ wine POWERPNT.EXE
Make things easier
By scripts ;)
#!/bin/bash wine "$HOME/.wine/drive_c/Program Files/Microsoft Office/Office12/WINWORD.EXE" -n $*
#!/bin/bash wine "$HOME/.wine/drive_c/Program Files/Microsoft Office/Office12/EXCEL.EXE" -n $*
#!/bin/bash wine "$HOME/.wine/drive_c/Program Files/Microsoft Office/Office12/POWERPNT.EXE" -n $*
You can directly open a file (e.g. Word file, ./my-work.doc) by:
$ word2k7.sh ./my-work.doc