CentOS 5.6 x64 環境底下
下載安裝 rpm gpg key,為了要有這個檔 /etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpmrpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
下載yum庫
wget http://ask4itsolutions.com/RPMs/google-chrome-64bit.repo -O /etc/yum.repos.d/google-chrome-64bit.repo
安裝 google chrome
yum install google-chrome-stable
當我執行 google-chrome 時,又來了 ↓
/usr/bin/google-chrome: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9′ not found (required by /usr/bin/google-chrome)
用
strings /usr/lib64/libstdc++.so.6|grep GLIBC
可以顯示我的libstdc++是沒有 3.4.9版本的
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.4
GLIBC_2.2.5
GLIBCXX_FORCE_NEW
執行
rpm2cpio libstdc++-4.3.0-8.x86_64.rpm | cpio -idv
在同目錄下就有 usr目錄產生
就把它copy到 /opt/google/chrome/目錄裡面
cp -rp usr/lib64/libstdc++.so.6* /opt/google/chrome/
ref:
http://wiki.centos.org/AdditionalResources/Repositories/RPMForge#head-5aabf02717d5b6b12d47edbc5811404998926a1b
http://blog.ask4itsolutions.com/2011/03/20/howto-installing-google-chrome-on-rhel-6-red-hat-enterprise-linux-6-32bit-64bi/
yum install google-chrome-stable 時遇到的錯誤
google-chrome-stable-12.0.742.100-88853.x86_64 from google64 has depsolving problems
–> Missing Dependency: libcurl.so.4()(64bit) is needed by package google-chrome-stable-12.0.742.100-88853.x86_64 (google64)
Error: Missing Dependency: libcurl.so.4()(64bit) is needed by package google-chrome-stable-12.0.742.100-88853.x86_64 (google64)
You could try using –skip-broken to work around the problem
You could try running: package-cleanup –problems
package-cleanup –dupes
rpm -Va –nofiles –nodigest
The program package-cleanup is found in the yum-utils package.
以上失敗,
目前使用 chromium
ref:
http://learning.utshop.tw/linux/linux-ci-fu-qi-jia-she/wang-lu-guan-li/zaicentos55jiejuewufaanzhuanggoogle-chromeliulanqi
http://www.linux-powered.com/~ryoji.kamei/ChromiumCentOS5.xhtml
留言