linux 安装 openoffice

本文详细介绍了如何在Linux环境下使用rpm包安装Apache OpenOffice 4.1.3版本,包括资源准备、编译安装步骤、启动方法及常见错误解决方案。确保libXext.so.6库文件正确安装并授权,以及X Window System环境配置正确。
  • 资源准备:

Apache_OpenOffice_4.1.3_Linux_x86-64_install-rpm_zh-CN.tar.gz

  • 编译安装:

本人资源包放在 /opt/moudles 中, 解压后放在 /opt/softwares 中

解压openoffice包

[root@haotu369 opt]# tar -zxvf modules/Apache_OpenOffice_4.1.3_Linux_x86-64_install-rpm_zh-CN.tar.gz -C softwares/

解压之后会在 /opt/softwares 中生成 zh-CN 文件夹,进入 zh-CN 中 RPMS 文件夹

运行 yum localinstall *.rpm

[root@haotu369 RPMS]# yum localinstall *.rpm

安装成功后会在当前目录生成 desktop-integration 文件夹,进入desktop-integration 文件夹,运行以下命令

[root@haotu369 desktop-integration]# yum localinstall openoffice4.1.3-redhat-menus-4.1.3-9783.noarch.rpm

安装成功会在 /opt 目录下生成 openoffice4 文件夹

  • 启动:

[root@haotu369 opt]# nohup /opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &

查看是否启动成功 ps -ef|grep openoffice

root      3008  1774  0 15:21 pts/0    00:00:00 /bin/sh /opt/openoffice4/program/soffice -headless -accept=socket,host=127.0.0.1,port=8100;urp; -nofirststartwizard
root      3017  3008  0 15:21 pts/0    00:00:00 /opt/openoffice4/program/soffice.bin -headless -accept=socket,host=127.0.0.1,port=8100;urp; -nofirststartwizard
root      3038  1774  0 15:24 pts/0    00:00:00 grep --color=auto openoffice

查看占用的端口 ps -anp|grep 8100

tcp        0      0 127.0.0.1:8100          0.0.0.0:*               LISTEN      3017/soffice.bin  

 

  • 常见错误:

错误一

/opt/openoffice4/program/soffice.bin: error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory

解决方法

[root@haotu369 opt]# yum install libXext.x86_64

[root@haotu369 opt]# cp /usr/lib64/libXext.so.6 /opt/openoffice4/program/

## 进入/opt/openoffice4/program/为libXext.so.6授权##
[root@haotu369 program]# chmod 777 libXext.so.6

错误二

no suitable windowing system found, exiting.

解决方法

yum groupinstall "X Window System"

 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

算法小生Đ

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值