linux下openoffice4.1.7安装及错误解决

1. 下载

cd /usr/local/tools

wget https://jaist.dl.sourceforge.net/project/openofficeorg.mirror/4.1.7/binaries/zh-CN/Apache_OpenOffice_4.1.7_Linux_x86-64_install-rpm_zh-CN.tar.gz

2. 解压安装

tar xf Apache_OpenOffice_4.1.7_Linux_x86-64_install-rpm_zh-CN.tar.gz

cd zh-CN/RPMS/

yum localinstall *.rpm

cd desktop-integration/

yum localinstall openoffice4.1.7-redhat-menus-4.1.7-9800.noarch.rpm

 

3.安装完成后,启动

临时启动验证:/opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard

3. 1出现 error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory

去/usr/lib64查看是否有libXext.so.6文件

cd /usr/lib64,如果有libXext.so.6,拷贝到/opt/openoffice4/program/

cp libXext.so.6 /opt/openoffice4/program/

如果没有,直接安装

yum install libXext.x86_64

3.2 再次运行,出现libfreetype.so.6: cannot open shared object file: No such file or directory

重复上述步骤,没有的话,直接安装

yum install freetype

3.3 再次运行,出现no suitable windowing system found, exiting.

yum groupinstall "X Window System"

linux下openoffice4.1.7安装及错误解决_第1张图片

再次启动,成功运行。

4.启动

放入后台永久运行
nohup /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &

加入到开机自启动
vim /etc/rc.local
nohup /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &
 

5. 测试

netstat -lnp |grep 8100

 

 

 

你可能感兴趣的:(技术运维)