最近做openoffice Linux相关的工作,将openoffice的安装过程以及遇到的问题总计一下
1.下载
可以去官网http://www.openoffice.org/下载openoffice的对应版本,我下载的是Linux x86-64 4.1.4 版本。
2.安装
先安装java,之后进入安装文件位置,解压安装包
tar zxvf Apache_OpenOffice_4.1.4_Linux_x86-64_install-rpm_zh-CN.tar.gz
cd zh-CN/RPMS/
rpm -ivh *.rpm
等待所有安装包安装完成
Preparing...
Updating / installing...
1:openoffice-ure-4.1.4-9788
2:openoffice-core01-4.1.4-9788
3:openoffice-zh-CN-4.1.4-9788
4:openoffice-impress-4.1.4-9788
5:openoffice-zh-CN-base-4.1.4-9788
6:openoffice-zh-CN-calc-4.1.4-9788
7:openoffice-zh-CN-draw-4.1.4-9788
8:openoffice-zh-CN-help-4.1.4-9788
9:openoffice-zh-CN-impress-4.1.4-97
10:openoffice-zh-CN-math-4.1.4-9788
11:openoffice-zh-CN-res-4.1.4-9788
12:openoffice-zh-CN-writer-4.1.4-978
13:openoffice-base-4.1.4-9788
14:openoffice-calc-4.1.4-9788
15:openoffice-core02-4.1.4-9788
16:openoffice-core03-4.1.4-9788
17:openoffice-core04-4.1.4-9788
18:openoffice-core05-4.1.4-9788
19:openoffice-core06-4.1.4-9788
20:openoffice-core07-4.1.4-9788
21:openoffice-draw-4.1.4-9788
22:openoffice-images-4.1.4-9788
23:openoffice-4.1.4-9788
24:openoffice-math-4.1.4-9788
25:openoffice-writer-4.1.4-9788
26:openoffice-brand-writer-4.1.4-978
27:openoffice-brand-math-4.1.4-9788
28:openoffice-brand-base-4.1.4-9788
29:openoffice-brand-calc-4.1.4-9788
30:openoffice-brand-draw-4.1.4-9788
31:openoffice-brand-impress-4.1.4-97
32:openoffice-brand-zh-CN-4.1.4-9788
33:openoffice-ogltrans-4.1.4-9788
34:openoffice-gnome-integration-4.1.
35:openoffice-graphicfilter-4.1.4-97
36:openoffice-javafilter-4.1.4-9788
37:openoffice-onlineupdate-4.1.4-978
38:openoffice-ooofonts-4.1.4-9788
39:openoffice-ooolinguistic-4.1.4-97
40:openoffice-pyuno-4.1.4-9788
41:openoffice-xsltfilter-4.1.4-9788
安装完后进入desktop-integration安装另外一部分安装包
cd desktop-integration/
rpm -ivh openoffice4.1.4-redhat-menus-4.1.4-9788.noarch.rpm
3.开启服务
默认安装位置为:/opt/openoffice4
cd /opt/openoffice4/program/
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofiertstartwizard &
4.遇到的问题
在开启服务时遇到
/opt/openoffice4/program/soffice.bin: error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory
这是因为缺少库文件,查看 /usr/lib64/ 或者 /usr/lib/下是否有libXext.so.6文件,如果有,拷贝
如果没有,安装后拷贝
yum -y install libXext.x86
cp /usr/lib64/libXext.so.6 /opt/openoffice4/program/
再次开启服务遇到
/opt/openoffice4/program/soffice.bin: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory
同上
yum -y install freetype
再次开启服务,遇到
no suitable windowing system found, exiting.
安扎un个依赖环境
yum -y groupinstall "X Window System"
再次开启服务,成功