Thursday, October 14, 2010

How to install google chrome browser in CentOS

First of all, sorry for my English not so good.
I try to install google chrome 3-5 times but it still not successful.
Until today, I'm traveling through the internet and found some article related with is topic. So I have been try by myself and this is the conclusion.
- Download "chrome.tar.gz" from this link
- gunzip chrome.tar.gz
- cd chrome
- ./chrome-wrapper



After that I got the error like this

[root@localhost chrome]# ./chrome-wrapper
/home/surachai/Desktop/chrome/chrome: error while loading shared libraries: libXcomposite.so.1: cannot open shared object file: No such file or directory

This error can be fix by

[root@localhost chrome]# yum list libXcomposite
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.issp.co.th
 * base: virror.hanoilug.org
 * extras: virror.hanoilug.org
 * updates: virror.hanoilug.org
http://dl.google.com/linux/rpm/stabls/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Available Packages
libXcomposite.i386                                          0.3-5.1                                          base

[root@localhost chrome]# yum install -y libXcomposite.i386
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.issp.co.th
 * base: virror.hanoilug.org
 * extras: virror.hanoilug.org
 * updates: virror.hanoilug.org
http://dl.google.com/linux/rpm/stabls/i386/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package libXcomposite.i386 0:0.3-5.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================
 Package                         Arch                   Version                     Repository              Size
=================================================================================================================
Installing:
 libXcomposite                   i386                   0.3-5.1                     base                    11 k

Transaction Summary
=================================================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 11 k
Downloading Packages:
libXcomposite-0.3-5.1.i386.rpm                                                            |  11 kB     00:00    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : libXcomposite                                                                             1/1

Installed:
  libXcomposite.i386 0:0.3-5.1                                                                                  

Complete!


When you complete install "libXcomposite" run the "./chrome-wrapper" again.
It may have some error but should be work !!!

[root@localhost chrome]# ./chrome-wrapper
[5886:5898:2608751431:ERROR:base/nss_util.cc(184)] Error initializing NSS with a persistent database (sql:/root/.pki/nssdb): NSS error code -8174

 
Then, you choose your prefer search engine. After that welcome to google chrome browser.


No comments:

Post a Comment