Linux OpenOffice安装详解

381 阅读1分钟

一、进入安装目录,解压并安装

cd /home/openoffice
#上传安装包
rz Apache_OpenOffice_4.1.4_Linux_x86-64_install-rpm_zh-CN.tar.gz
#进入目录
cd zh-CN/RPMS/
#安装软件包
rpm -ivh *.rpm
#进入目录
cd desktop-integration/
#安装软件包
rpm -ivh openoffice4.1.4-redhat-menus-4.1.4-9788.noarch.rpm
#启动
/opt/openoffice4/program/soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &

二、安装遇到问题,解决方案

1、问题:libXext.so.6: cannot open shared object file: No such file or directory

yum install libXext-1.3.3-3.el7.x86_64 --setopt=protected_multilib=false
2、问题: no suitable windowing system found, exiting.

yum groupinstall "X Window System"
3、openoffice在转pdf时,中文乱码或者中文不显示的问题
Windows系统中,在 C:\Windows\Fonts 下,找到字体文件(simhei.ttf 黑体、simsun.ttc 宋体,建议全部上传到linux)

将准备好的字体,上传到  
/usr/share/fonts
下边安装字体
 cd /usr/share/fontsmkfontscale 
(如果提示 mkfontscale: command not found,需自行安装 # yum install mkfontscale)
mkfontdirfc-cache
(如果提示 fc-cache: command not found,则需要安装# yum install fontconfig )
查看系统默认字体:
fc-list
如果要查看系统中已经安装的中文字体,
我们可以使用如下命令:
fc-list :lang=zh
杀掉openoffice进程
ps -ef | grep officekill -9 
进程号重启: 
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &

三、查看端口,是否启动成功

netstat -tunlp | grep 8100