之前安装的google浏览器,不是官方的,而且折腾不天也装不上adobe flash player,无奈又开始研究原版安装方法。
不管使用yum安装还是rpm都报同样错误Requires: libstdc++.so.6(GLIBCXX_3.4.15)
但是之前是升级过gcc的,使用strings /usr/lib/libstdc++.so.6 | grep GLIBC 也可以看到:GLIBCXX_3.4.15
无奈安装总说找不到,后来在网上找到一方发,问题解决:
下载新版本,地址:http://ftp.de.debian.org/debian/pool/main/g/gcc-4.7/libstdc++6_4.7.2-5_i386.deb
对没错下载deb的安装包。
然后执行:
ar -x libstdc++6_4.7.2-5_i386.deb tar xvf data.tar.gz
会在当前目录生成一个usr目录,
cd usr/lib/i386-linux-gnu rm /usr/lib/libstdc++.so.6 cp libstdc++.so.6.0.17 /usr/lib cd /usr/lib/ ln libstdc++.so.6.0.17 libstdc++.so.6
然后下载官方原版:
借助一个shell脚本:
#!/bin/bash if [ -z "${CHROMIUM_VERSION}" ]; then # Unset by default, get current. # CHROMIUM_VERSION=29.0.1547.57 # CHROMIUM_SVN_REVISION=217859 true fi if [ -z "${CHANNEL}" ]; then CHANNEL="stable" fi if [ -n "${CHROMIUM_VERSION}" ]; then VERSION_RELEASE="-${CHROMIUM_VERSION}-${CHROMIUM_SVN_REVISION}." else VERSION_RELEASE="_current_" fi ARCH="$(uname -i)" RPM_FILE="google-chrome-${CHANNEL}${VERSION_RELEASE}${ARCH}.rpm" # 1. Download Google Chrome. echo -e "\n1. Downloading Google Chrome.\n" if [ -f "${RPM_FILE}" ]; then echo -e "\nUsing existing ${RPM_FILE}.\n" else echo -e "\nDownloading ${RPM_FILE}, ~ 55 MB.\n" if [ -n "${CHROMIUM_VERSION}" ]; then curl "https://dl.google.com/linux/chrome/rpm/stable/${ARCH}/${RPM_FILE}" -o "${RPM_FILE}" else curl "https://dl.google.com/linux/direct/${RPM_FILE}" -o "${RPM_FILE}" fi fi echo -e "\nInfo for ${RPM_FILE}:" echo -e " Version: $(rpm -qa -f ${RPM_FILE} --qf %{VERSION})" echo -e " Release (SVN revision): $(rpm -qa -f ${RPM_FILE} --qf %{RELEASE})" echo ""
# 2. Extract RPM. echo -e "\n2. Extracting ${RPM_FILE}.\n" rm -rf google_chrome && mkdir google_chrome && cd google_chrome rpm2cpio ../${RPM_FILE} | cpio -id --quiet cd ..
这里会在当前目录解压出来一个chrome浏览器,可以先尝试下能否运行
cd opt/google/chrome ./google-chrome
如果可以运行,则
安装:
忽略依赖强制安装:rpm -ivh *.rpm --nodeps --force
完成。
Centos 6.6安装google chrome 出现/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found 蹩脚解决方法
时间: 2024-10-25 00:58:09