官网: http://www.openoffice.org/zh-cn/download/
# tar -zxf Apache_OpenOffice_4.1.5_Linux_x86-64_install-rpm_zh-CN.tar.gz
# cd zh-CN/RPMS
# rpm -ivh *.rpm
# rpm -ivh desktop-integration/openoffice4.1.5-redhat-menus-4.1.5-9789.noarch.rpm
# /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
# nohup /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
查看是否启动成功:
# netstat -lnp |grep 8100
(1) error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory
解决:
缺少libXext.so.6文件, 先去/usr/lib或者/usr/lib64下查看有无此文件, 如果有, 则拷贝到/opt/openoffice4/program/下, 如果没有则依次执行以下命令:
# yum install libXext.x86_64
# cp /usr/lib64/libXext.so.6 /opt/openoffice4/program/
或者
# cp /usr/lib/libXext.so.6 /opt/openoffice4/program/
具体看libXext.x86_64安装在哪
重启openoffice;
(2) error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory
解决:
同上, 缺少libfreetype.so.6, 同样是先从/usr/lib或者/usr/lib64下查找, 有则复制到/opt/openoffice4/program/, 没有就执行以下命令进行安装:
# yum install freetype
# cp /usr/lib64/libfreetype.so.6 /opt/openoffice4/program/
或者
# cp /usr/lib/libfreetype.so.6 /opt/openoffice4/program/
具体看libfreetype.x86_64安装在哪
重启openoffice;
(3) no suitable windowing system found, exiting
解决:
# yum groupinstall "X Window System"
重启openoffice;
# rpm -e `rpm -qa |grep openoffice` `rpm -qa |grep ooobasis`