RHEL 6 安装 chrome [备忘]

参考 chrome 官方网站

增加文件 /etc/yum.repos.d/chome.repo

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


使用命令进行安装 , 但报错

yum install -y google-chrome-stable
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:30.0.1599.114-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: google-chrome-stable-30.0.1599.114-1.x86_64
--> Processing Dependency: libXss.so.1()(64bit) for package: google-chrome-stable-30.0.1599.114-1.x86_64
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:30.0.1599.114-1 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: google-chrome-stable-30.0.1599.114-1.x86_64
---> Package libXScrnSaver.x86_64 0:1.2.2-2.el6 will be installed
--> Finished Dependency Resolution
Error: Package: google-chrome-stable-30.0.1599.114-1.x86_64 (google-chrome)
           Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest


无奈库文件太旧

另外有一种简便版安装方法

添加文件 /etc/yum.repos.d/chome-mini.repo

[chromini-el6]
name=CentOS-$releasever - Chromium EL6
baseurl=http://people.centos.org/hughesjr/chromium/6/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-Testing-6


利用下面命令可避免调用新版本库的问题

 yum install chromium

 

安装 flash 支持

cd /tmp
wget https://raw.github.com/hughesjr/chromium_el_builder/master/chrome_pepperflash_copy.sh
 


 

执行脚本方法

chmod +x chrome_pepperflash_copy.sh
./chrome_pepperflash_copy.sh


 

安装 PDF 插件

cd /tmp
wget https://raw.github.com/hughesjr/chromium_el_builder/master/chrome_libpdf_copy.sh

 

执行脚本方法

chmod +x chrome_libpdf_copy.sh
./chrome_libpdf_copy.sh


默认情况为了安全, 必须要以普通用户身份启动

su - user
cd /opt/chroium
./chrome &


java 安装方法

例如当前 java 环境如

echo $JAVA_HOME
/usr/local/java


 

为用户 user 创建 java plugin

mkdir /home/user/.mozilla/plugins
ln -s /usr/local/java/jre/lib/amd64/libnpjp2.so /home/user/.mozilla/plugins/.

 

注: 切勿使用  cp  方式复制库文件,只能够使用 ln 方法建立软链接, 否则插件无法加载

测试方法  http://www.java.com/en/download/installed.jsp

你可能感兴趣的:(linux,安装,chrome,RHEL6)