Centos 6.6安裝chrome Google瀏覽器

來源:互聯網
上載者:User

標籤:linux   chrome   Google   瀏覽器   installer   

用firefox總感覺很慢,有時候還假死。經過網上一番搜尋,試過各種方法,終於安裝成功。


一   下載

在個google官網下載的瀏覽器安裝一直報錯:

 sudo rpm -ivh Downloads/google-chrome-stable_current_i386.rpm [sudo] password for hakits: warning: Downloads/google-chrome-stable_current_i386.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEYerror: Failed dependencies:libstdc++.so.6(GLIBCXX_3.4.15) is needed by google-chrome-stable-42.0.2311.90-1.i386


Create a file called /etc/yum.repos.d/google-chrome.repo and add the following lines of code to it.

[google-chrome]name=google-chromebaseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearchenabled=1gpgcheck=1gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
也報相同的錯誤。

需要更新安裝g++,:

http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-4.8.1/gcc-4.8.1.tar.bz2

gcc-4.8.1.tar.bz2
解壓:
tar -jxvfgcc-4.8.1.tar.bz2
 
下載編譯所需的依賴包:

cd gcc-4.8.1

./contrib/download_prerequisites

建立目錄用於存放編譯結果:

mkdir gcc-build-4.8.1

進入新目錄,並執行configure命令,產生makefile://以下只編譯了C++

cd gcc-build-4.8.1

../gcc-4.8.1/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib

編譯 : // 耗時很長,如果是多核的話可以添加 -j 後面加想要使用的cpu數

make

安裝:

make install

安裝完成檢查版本:

g++ --version

g++ (GCC) 4.8.1

但是此時/usr/lib/libstdc++.so.6 還是軟串連/usr/lib/libstdc++.so.6.0.13

先去掉此串連:

rm -rf /usr/lib/libstdc++.so.6 -> /usr/lib/libstdc++.so.6.0.13

再建立串連:

ln -s /usr/local/lib/libstdc++.so.6.0.18 /usr/lib/libstdc++.so.6

查看庫:

strings /usr/lib/libstdc++.so.6 | grep GLIBCGLIBCXX_3.4GLIBCXX_3.4.1GLIBCXX_3.4.2GLIBCXX_3.4.3GLIBCXX_3.4.4GLIBCXX_3.4.5GLIBCXX_3.4.6GLIBCXX_3.4.7GLIBCXX_3.4.8GLIBCXX_3.4.9GLIBCXX_3.4.10GLIBCXX_3.4.11GLIBCXX_3.4.12GLIBCXX_3.4.13GLIBCXX_3.4.14GLIBCXX_3.4.15GLIBCXX_3.4.16GLIBCXX_3.4.17GLIBCXX_3.4.18GLIBCXX_3.4.19GLIBC_2.3GLIBC_2.0GLIBC_2.1GLIBC_2.1.3GLIBC_2.3.2GLIBC_2.2GLIBCXX_FORCE_NEWGLIBCXX_DEBUG_MESSAGE_LENGTH
安裝依然報相同的錯誤。

最後找到方法,重新下載:http://people.centos.org/hughesjr/chromium/6/i386/RPMS/

我選擇的是:chromium-31.0.1650.63-2.el6.i686.rpm


參考:1

由於在linux系統上開啟網頁速度比在windows下慢好多,所以覺得換個瀏覽器,就想裝個chrome,這個流程很蠻波折的,最後成功了,先記錄一下。

我的系統為centos6.4, 32位。

問題: 首先從官網上下了一個google-chrome-stable-33.0.1750.146-1.i386.rpm,試圖安裝:

rpm -i google*

時報錯Requires: libstdc++.so.6(GLIBCXX_3.4.15)

缺少庫,查看 /usr/lib下的libstdc++.so.6,

strings /usr/lib/libstdc++.so.6 | grep GLIBC

返回結果沒有GLIBCXX_3.4.15,繼續查看

ls -l /usr/lib/libstdc++.so.6

發現/usr/lib/libstdc++.so.6 -> /usr/lib/libstdc++.so.6.0.13

需要更新libstdc++.so.6版本,直接

yum updatelibstdc++.so.6 或者 gcc

說是已經是最新的了,所以只能從網上下,但是從網上下的不一定對,就重新自己編譯gcc

(1)編譯 gcc

下載gcc 4.8.1源碼包:

http://gcc.gnu.org/mirrors.html 從中選取日本的鏡像網站,因為下載速度快,其他的很慢

從http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-4.8.1/ 中選擇

gcc-4.8.1.tar.bz2
解壓:
tar -jxvfgcc-4.8.1.tar.bz2
 
下載編譯所需的依賴包:

cd gcc-4.8.1

./contrib/download_prerequisites

建立目錄用於存放編譯結果:

mkdir gcc-build-4.8.1

進入新目錄,並執行configure命令,產生makefile://以下只編譯了C++

cd gcc-build-4.8.1

../gcc-4.8.1/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib

編譯 : // 耗時很長,如果是多核的話可以添加 -j 後面加想要使用的cpu數

make

安裝:

make install

安裝完成檢查版本:

g++ --version

g++ (GCC) 4.8.1

但是此時/usr/lib/libstdc++.so.6 還是軟串連/usr/lib/libstdc++.so.6.0.13

先去掉此串連:

rm -rf /usr/lib/libstdc++.so.6 -> /usr/lib/libstdc++.so.6.0.13

再建立串連:

ln -s /usr/local/lib/libstdc++.so.6.0.18 /usr/lib/libstdc++.so.6

檢查一下庫:

strings /usr/lib/libstdc++.so.6 | grep GLIBC

返回結果有了GLIBCXX_3.4.15


(2)安裝chrome

此時:

rpm -i google*

還是報相同的錯,但是已經有了庫,沒有道理不對,後在

http://www.oschina.net/question/254443_115424

找到問題,chrome版本不對,重新下載:

http://people.centos.org/hughesjr/chromium/6/i386/RPMS/

我選擇了chromium-31.0.1650.63-2.el6.i686.rpm

rpm -i google*

安裝成功,點擊應用程式按鈕就看到了瀏覽器。


參考:2


Google Chrome is a freeware web browser developed by Google Inc. Google Chrome team proudly announced the release of Google Chrome 41 on March 03, 2015. The actual version is41.0.2272.76 for Linux/Mac OS X andWindows operating system. This new version bundled with a number of exciting fixes, features and improvements, including:

  1. A number of new extension, as well as new app APIs (Application Programming Interfaces)
  2. Included wide range of under the hood changes to improve stability and performance

If you would like to know more other cool features of this release, please visit atGoogle’s Chrome Features.

Install Google Chrome in Linux

In this tutorial we will show you how we have practically installed Google Chrome 41 browser in one of ourCentOS 7.0 server using Google’s own repository withYum tool and a third party script from Richard Lloyd, which installs latest chrome version onRHEL/CentOS and Fedora versions.

By using Google’s official repository you will keep your Chrome browser up-to-date. However, it should also work onRHEL 7.0/6.x, CentOS 7.0/6.x and Fedora 21-15 versions as well.

Step 1: Enable Google YUM repository

Create a file called /etc/yum.repos.d/google-chrome.repo and add the following lines of code to it.

[google-chrome]name=google-chromebaseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearchenabled=1gpgcheck=1gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
Step 2: Installing Chrome Web Browser

First, check whether the latest version available from the Google’s own repository using following yum command.

# yum info google-chrome-stable

Check Google Chrome Info

Do you see the highlighted output in the above image, that clearly telling that the latest version of chrome is available from repository. So, let’s install it usingyum command as shown below, which will automatically install all needed dependencies.

# yum install google-chrome-stable

Installing Google Chrome

Update : Sadly, the Google Chrome browser no longer supports the most famous commercial distributionRHEL 6.x and its free clones such as CentOS andScientific Linux.

Yes, they’ve discontinued support for RHEL 6.X version as of Google Chrome and on other side, latest Firefox and Opera browsers run successfully on the same platforms.

Luckily, there is a script developed by Richard Lloyd, that automatically download and install latest Google Chrome browser by picking libraries from a more recent released distro and put those libraries in (/opt/google/chrome/lib) directory and then you can able to run Google Chrome on RHEL/CentOS 6.x versions.

# wget http://chrome.richardlloyd.org.uk/install_chrome.sh# chmod u+x install_chrome.sh# ./install_chrome.sh
Sample Output
Google Chrome Installer 6.10 on the i686 platform(C) Richard K. Lloyd 2014 <[email protected]>*** Creating temporary directory /tmp/chrome_install ...*** Changing working directory to /tmp/chrome_install ...*** Checking for an update to install_chrome.sh ...*** Downloading version.dat (please wait) ...--2014-11-21 23:59:04--  http://chrome.richardlloyd.org.uk/version.datResolving chrome.richardlloyd.org.uk... 193.110.246.53Connecting to chrome.richardlloyd.org.uk|193.110.246.53|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 5 [text/plain]Saving to: “version.dat”100%[=====================================================================================================================>] 5           --.-K/s   in 0s      2014-11-21 23:59:09 (783 KB/s) - “version.dat” saved [5/5]*** install_chrome.sh is already the latest version (6.10) - continuing ...

Richard Lloyd Google Chrome Script

Step 3: Starting Chrome Web Browser

Start browser with non-root user.

# google-chrome &

Welcome screen of Chrome web browser.

Welcome Google Chrome

Exploring www.tecmint.com with cool Chrome web browser.

Browsing Google Chrome

About Google Chrome

Download Two Free Google Chrome eBooks

Google Chrome Cheat Sheet: This free ebook contains dozens of other helpful keyboard shortcuts that will help you on how to use Google Chrome efficiently.

10 Essential Chrome Tips: This free ebook provides certain useful but overlooked Chrome tips that have the potential to significantly enhance a Chrome user’s everyday experience.That’s it, enjoy browsing with Chrome and do let me know your browsing experience with Chrome via comments.

Centos 6.6安裝chrome Google瀏覽器

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.