利用wine使用msoffice软件

来源:互联网 发布:node.js orm 编辑:程序博客网 时间:2024/06/11 18:30


由于身边很多工作限制,不得不处理.doc,.exel和ppt等软件,而ubuntu上自带libreoffice处理msoffice的东西时总感觉不好用,今天利用wine感觉用的很好。


wine是一款用来在linux系统上安装、运行windows的.exe文件的开源软件,安装教程网上很多。对于ubuntu可以用apt-get install命令来安装,但是系统默认的不是安装的最新版本。


将下载的MS office包解压后,切换到解压缩包的目录下,用wine setup.exe命令就可以像在windows上一样安装office。


安装完成后,我们的office软件可执行文件就在目录 ~/.wine/drive_c/Program Files/Microsoft Office/Office12下,那么如果要用命令行启动word,excel,ppt,outlook等,必须切换到该目录,执行wine WINWORD.EXE/EXECEL.EXE/POWERPNT.EXE/OUTLOOK.EXE [可选 打开的文件名],或者 用命令 wine ~/.wine/drive_c/Program Files/Microsoft Office/Office12/WINWORD.EXE

这里可能在打开powerpoint时可能会出现问题

fixme:heap:HeapSetInformation 0x110000 1 (nil) 0fixme:heap:HeapSetInformation 0x110000 1 (nil) 0fixme:heap:HeapSetInformation 0x110000 1 (nil) 0fixme:heap:HeapSetInformation 0x110000 1 (nil) 0fixme:advapi:RegisterEventSourceW ((null),L"Microsoft Office 12"): stubfixme:advapi:ReportEventA (0xcafe4242,0x0001,0x0000,0x000007d0,(nil),0x0002,0x00000000,0x32ef28,(nil)): stubfixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x000007d0,(nil),0x0002,0x00000000,0x152318,(nil)): stuberr:eventlog:ReportEventW L"Microsoft Office PowerPoint"err:eventlog:ReportEventW L"PowerPoint failed to launch in safe mode. Do you want to start Detect and Repair?"fixme:advapi:DeregisterEventSource (0xcafe4242) stubfixme:msimtf:DllGetClassObject ({c1ee01f2-b3b6-4a6a-9ddd-e988c088ec82} {00000001-0000-0000-c000-000000000046} 0x3287d0)err:ole:apartment_getclassobject DllGetClassObject returned error 0x80040111err:ole:CoGetClassObject no class object {c1ee01f2-b3b6-4a6a-9ddd-e988c088ec82} could be created for context 0x1fixme:heap:HeapSetInformation 0x110000 1 (nil) 0fixme:win:EnumDisplayDevicesW ((null),0,0x329fe0,0x00000000), stub!fixme:wtsapi:WTSRegisterSessionNotification Stub 0x800ee 0x00000000fixme:advapi:RegisterEventSourceW ((null),L"Microsoft Office 12 Sessions"): stubfixme:advapi:ReportEventW (0xcafe4242,0x0002,0x0000,0x00001b5b,(nil),0x0004,0x00000000,0x32a530,(nil)): stubfixme:advapi:DeregisterEventSource (0xcafe4242) stub

该问题解决方法可这样,参照老外的 http://ubuntuforums.org/showthread.php?t=1902502

执行命令 winecfg,弹出一个wine设置窗口,切换到“函数库”选项下,在新增函数库顶替中选择riched20库,再添加。这样再次启动可成功启动。


上面两种启动方法都比较繁琐,可以写个脚本来执行

0 0
原创粉丝点击