centos7 安装openoffice

#安装openoffice

[root@cql ~]# tar -xf Apache_OpenOffice_4.1.5_Linux_x86-64_install-rpm_zh-CN.tar.gz

[root@cql zh-CN]# cd RPMS/
[root@cql RPMS]# rpm -ivh *.rpm

[root@cql zh-CN]# desktop-integration/
[root@cql desktop-integration]# rpm -ivh openoffice4.1.5-redhat-menus-4.1.5-9789.noarch.rpm

[root@cql RPMS] yum groupinstall "X Window System"

报错:
SyntaxError: invalid syntax
  File "/usr/libexec/urlgrabber-ext-down", line 28
    except OSError, e:
解决办法:
由于升级过python版本,修改/usr/libexec/urlgrabber-ext-down和/usr/bin/yum的python解释器版本

启动:
[root@cql desktop-integration]# /opt/openoffice4/program/soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard &
[1] 57754
[root@cql desktop-integration]# ps aux | grep 57754
root     57754  0.0  0.3 113132   752 pts/0    S    09:39   0:00 /bin/sh /opt/openoffice4/program/soffice --headless --accept=socket,host=127.0.0.1,port=8100;urp; --nofirststartwizard
root     57801  0.0  0.2 112680   696 pts/0    R+   09:40   0:00 grep --color=auto 57754

猜你喜欢

转载自blog.csdn.net/cql08e/article/details/81234521
今日推荐