简体   繁体   English

CentOS 中的谷歌浏览器

[英]Google Chrome in CentOS

In CentOS 6.5 I would like to install Google Chrome, but I am having a problem with that.在 CentOS 6.5 中,我想安装 Google Chrome,但我遇到了问题。

I read that this is mainly because Google are using very recent Linux build systems which produce backwards-incompatible binaries.我读到这主要是因为谷歌使用的是最新的 Linux 构建系统,这些系统生成向后不兼容的二进制文件。

1) Enable Google YUM repository: 1) 启用 Google YUM 存储库:

Add following to /etc/yum.repos.d/google.repo file:将以下内容添加到/etc/yum.repos.d/google.repo文件中:

for 32-bit对于 32 位

[google]
name=Google - i386
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

for 64-bit对于 64 位

[google64]
name=Google - x86_64
baseurl=http://dl.google.com/linux/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

2) Install Google Chrome with YUM (as root user) 2) 使用 YUM 安装 Google Chrome(以 root 用户身份)

yum install google-chrome-stable

复制并运行这一行:

curl https://intoli.com/install-google-chrome.sh | bash

Whilst adding a Google Chrome repo works in CentOS 7, the original question mentioned CentOS 6.5, so just a yum repo on its own isn't good enough for that older (but still supported) platform.虽然在 CentOS 7 中添加 Google Chrome 存储库可以工作,但最初的问题提到了 CentOS 6.5,因此仅 yum 存储库本身对于那个较旧(但仍受支持)的平台来说还不够好。

Google do indeed use far too "new" compiler tools when building their Google Chrome browser on Linux, resulting in quite frankly avoidable libstdc++ compatibility issues in CentOS 6. The correct answer is to download and run the script I wrote from the site http://chrome.richardlloyd.org.uk/ but note that you must upgrade to at least CentOS 6.6 to run it.在 Linux 上构建 Google Chrome 浏览器时,Google 确实使用了过于“新”的编译器工具,坦率地说,导致 CentOS 6 中的 libstdc++ 兼容性问题是可以避免的。正确答案是下载并运行我从网站http:/ /chrome.richardlloyd.org.uk/但请注意,您必须至少升级到 CentOS 6.6 才能运行它。

This installs Chrome on any RHEL/CentOS/Amazon Linux variant.这会在任何 RHEL/CentOS/Amazon Linux 变体上安装 Chrome。

curl https://intoli.com/install-google-chrome.sh | bash

Refer for more details: https://intoli.com/blog/installing-google-chrome-on-centos/详情请参阅: https : //intoli.com/blog/installing-google-chrome-on-centos/

For linux rpms, you can find specific versions of Chrome here: https://dl.google.com/linux/rpm/stable/x86_64/google-chrome-stable-CHROME_VERSION.x86_64.rpm对于 linux rpm,您可以在此处找到特定版本的 Chrome: https : //dl.google.com/linux/rpm/stable/x86_64/google-chrome-stable-CHROME_VERSION.x86_64.rpm

replace CHROME_VERSION with the version you are looking for, eg 86.0.4240.198-1将 CHROME_VERSION 替换为您要查找的版本,例如 86.0.4240.198-1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM