close

想要在CentOS 6 上面安裝 Chrome是有問題的

不管用yum還是直接去chrome上面抓rpm下來都會遇到dependency的問題

Error: Package: google-chrome-stable-28.0.1500.52-207119.x86_64 (google-chrome)
           Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)

去查的結果

strings /usr/{lib,lib64}/libstdc++.so.6 | grep GLIBCXX
 
## Output ##
strings: '/usr/lib/libstdc++.so.6': No such file
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
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_FORCE_NEW
GLIBCXX_DEBUG_MESSAGE_LENGTH

沒有3.4.15

所以唯一的解法就是裝chromium

安裝方法

1. 獲得root權限

2.增加yum的repo

cd /etc/yum.repos.d/
wget http://people.centos.org/hughesjr/chromium/6/chromium-el6.repo

3.安裝

yum install chromium

如果你要在root下執行chromium的話

他會跳error跟你說不行

vi /opt/chromium/chrome-wrapper
最後一行
exec $CMD_PREFIX "$HERE/chrome" "$@"
改成
exec $CMD_PREFIX "$HERE/chrome" "$@" --user-data-dir

如果要裝flash跟pdf reader請參考

http://www.if-not-true-then-false.com/2013/install-chromium-on-centos-red-hat-rhel/

arrow
arrow
    文章標籤
    centos chromium
    全站熱搜

    purplebleed 發表在 痞客邦 留言(0) 人氣()