Luinx 下的Apache_OpenOffice安装

mkdir /basin/
mkdir /basin/apps
mkdir /basin/apps/openOffice
cd /basin/apps/openOffice
tar -xzvf Apache_OpenOffice_4.1.2_Linux_x86-64_install-rpm_zh-CN.tar.gz解压缩后,会得到zh-CN目录。
2.进入zh-CN目录:cd /basin/apps/openOffice/zh-CN 
3.进入到RPMS目录: cd /basin/apps/openOffice/zh-CN/RPMS
4.执行 rpm -ivh *.rpm安装所有rpm文件)成功如下
Luinx 下的Apache_OpenOffice安装
5.进入到desktop-integration目录 cd /basin/apps/openOffice/zh-CN/RPMS/desktop-integration
6.执行 rpm -ivh openoffice4.1.2-redhat-menus-4.1.2-9782.noarch.rpm 执行(redhat-menus)的rpm文件
注意:
如果报如下错误:
file /usr/bin/soffice from install of openoffice4.1.3-redhat-menus-4.1.3-9783.noarch conflicts with file from package libreoffice-core-1:4.0.4.2-9.el6.x86_64
则执行下面命令:
yum -y remove libreoffice-core-1:4.0.4.2-9.el6.x86_64
这时openOffice己经安装完成,默认会安装在/opt下:成功如下

Luinx 下的Apache_OpenOffice安装
启动openoffice:
(1).进入opt目录:cd /opt
(2)进入openoffice4目录: cd openoffice4
(3)进入program目录
cd /opt/openoffice4/program
(4)执行 
soffice -headless -accept=“socket,host=127.0.0.1,port=8100;urp;” -nofirststartwizard &
(5)完成启动
或者
/opt/openoffice4/program/soffice -headless -accept=“socket,host=127.0.0.1,port=8100;urp;” -nofirststartwizard &