wine安装office
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.
作为Linux用户,我必须保留Windows的副本。 原因之一是我应该编辑Windows所需,由其他Windows创建或由其他Windows使用的MS Office 文件 ,例如.doc,.ppt,.xls和.xml(office 2003 xml格式)。 Wine曾经在Office 2003上为我工作过,但存在这个或那个问题。 我最近在Office 2007上的Fedora 17上试用了Wine(1.5.11)的新版本,结果证明Wine上的Office 2007 Enterprise在Linux上运行良好。 我在网上搜索并找到了一些教程,但事实证明现在事情并不那么复杂。 因此,我在这篇文章中记下了它。
安装wine.i686 (Install wine.i686)
This is the most tricky part: installing wine.i686 instead of wine.x86_64 which will fails to work even with WINEARCH=win32 set.
这是最棘手的部分:安装wine.i686而不是wine.x86_64,即使设置了WINEARCH = win32也无法正常工作。
# yum install wine.i686
If there are conflicts, you should remove the old wine installations first.
如果存在冲突,则应首先删除旧的Wine安装。
准备葡萄酒前缀 (Prepare wine prefix)
Run
跑
$ WINEARCH=win32 winecfg
and wine will create a prefix in ~/.wine
.
并且wine将在~/.wine
创建一个前缀。
My version of wine is set to "Windows XP".
我的wine版本设置为“ Windows XP”。
安装Office 2007 (Install Office 2007)
Just as run normal Windows applications:
就像运行普通的Windows应用程序一样:
$ wine setup.exe
运行Office 2007 (Run Office 2007)
We can run Office 2007 on Linux with wine now.
现在,我们可以在Linux上使用wine运行Office 2007。
运行Word和Excel (Run Word and Excel)
To run Word and Excel, no special changes are needed.
要运行Word和Excel,不需要进行特殊更改。
$ wine WINWORD.EXE
or
要么
$ wine EXCEL.EXE
in Office 2007’s installation path which is ".wine/drive_c/Program Files/Microsoft Office/Office12/" by default.
默认情况下,在Office 2007的安装路径中为“ .wine / drive_c / Program Files / Microsoft Office / Office12 /”。
运行PowerPoint (Run Powerpoint)
It need a little trick to run powerpoint by overwriting the riched20 DLL libraries.
它需要一些技巧来通过覆盖riched20 DLL库来运行powerpoint。
Run winecfg, in tab "Libraries", select "riched20" in "New override for library" and click "Add". The edit the "riched20" overrides to be "native".
运行winecfg,在“库”标签中,在“库的新替代”中选择“ riched20”,然后单击“添加”。 编辑“ riched20”将覆盖为“ native” 。
Then you can run powerpoint:
然后您可以运行PowerPoint:
$ wine POWERPNT.EXE
使事情变得容易 (Make things easier)
By scripts ;)
通过脚本;)
word2k7.sh:
word2k7.sh:
#!/bin/bash
wine "$HOME/.wine/drive_c/Program Files/Microsoft Office/Office12/WINWORD.EXE" -n $*
excel2k7.sh:
excel2k7.sh:
#!/bin/bash
wine "$HOME/.wine/drive_c/Program Files/Microsoft Office/Office12/EXCEL.EXE" -n $*
powerpoint2k7.sh:
powerpoint2k7.sh:
#!/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:
您可以通过以下方式直接打开文件(例如,Word文件,。/ my-work.doc):
$ word2k7.sh ./my-work.doc
翻译自: https://www.systutorials.com/installing-ms-office-2007-on-linux-using-wine/
wine安装office