centos7 安装 chrome

centos7 安装 chrome,第1张

centos7 安装 chrome


#最新版chrome95需要升级glibc到2.18,这个库是底层库尽量不要升级,遂安装老版chrome解决

参见

https://blog.csdn.net/aWDac/article/details/80647001

#rpm安装chrome77
rpm -ivh https://dl.lancdn.com/landian/soft/chrome/m/77.0.3865.90_x86_64.rpm

#报错
[root@localhost ~]# rpm -ivh https://dl.lancdn.com/landian/soft/chrome/m/77.0.3865.90_x86_64.rpm
Retrieving https://dl.lancdn.com/landian/soft/chrome/m/77.0.3865.90_x86_64.rpm
error: Failed dependencies:
        libappindicator3.so.1()(64bit) is needed by google-chrome-stable-77.0.3865.90-1.x86_64
        liberation-fonts is needed by google-chrome-stable-77.0.3865.90-1.x86_64
        xdg-utils is needed by google-chrome-stable-77.0.3865.90-1.x86_64

#查找对应依赖安装
yum install libappindicator-gtk3
yum install liberation-fonts
yum install xdg-utils

#安装完成查看是否缺失依赖
[root@localhost ~]# sudo ldd /opt/google/chrome/chrome | grep not
[root@localhost ~]# 

#没有任何输出,说明安装正常
#使用chrome截图

[root@localhost ~]# sudo google-chrome-stable --headless --disable-gpu --screenshot --no-sandbox https://intoli.com/blog/installing-google-chrome-on-centos/
[1020/171640.133208:INFO:headless_shell.cc(619)] Written to file screenshot.png.
[root@localhost ~]# ls
anaconda-ks.cfg  glibc-2.18  glibc-2.18.tar.gz  install.sh  screenshot.png

安装完毕
 

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4664717.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-06
下一篇 2022-11-06

发表评论

登录后才能评论

评论列表(0条)

保存