openOffice安装

时间:2024-05-21 18:40:02

<1>.解压tar包
tar -zxvf Apache_OpenOffice_4.1.3_Linux_x86_install-rpm_zh-CN.tar.gz
openOffice安装
<2>安装 zh-CN/RPMS下的rpm文件
cd zh-CN/RPMS/
yum localinstall *.rpm
openOffice安装
<3>安装desktop-integration下的openoffice.org3.4-redhat-menus-3.4-9593.noarch.rpm
cd desktop-integration/
rpm -ivh openoffice4.1.3-redhat-menus-4.1.3-9783.noarch.rpm
openOffice安装
<4>启动
cd /opt/openoffice4/program/
soffice -headless -accept=”socket,host=127.0.0.1,port=8100;urp;” -nofirststartwizard &
  ①出现错误:/opt/openoffice4/program/soffice.bin: error while loading shared libraries: libXext.so.6: cannot open shared object file: No such file or directory
openOffice安装
   原因:在/opt/openoffice4/program/目录下缺少libXext.so.6文件
 解决:在/usr/lib64 或者/usr/lib 查看有没有这个文件,如果有就copy到/opt/openoffice4/program/ 目录里面,如果没有则yum install libXext.x86_64安装
openOffice安装
  ②出现错误:/opt/openoffice4/program/soffice.bin: error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory
   原因:同上
   解决:在/usr/lib64 或者/usr/lib 查看,如果没有则yum install freetype
  ③出现错误:no suitable windowing system found, exiting.
openOffice安装
   解决:yum groupinstall “X Window System”
④成功:
openOffice安装
附:openoffice卸载命令
rpm -e `rpm -qa |grep openoffice` `rpm -qa |grep ooobasis`
   openoffice乱码问题解决(仅为参考 ,需要再用)
1.修改linux默认编码方式(详见本人博客 linux修改默认编码方式
2.为linux系统添加新字体(详见本人博客 linux添加字体