Centos 6.6安装google chrome 出现/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15'
来源:程序员人生 发布时间:2015-08-24 08:05:47 阅读次数:3993次
之前安装的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
无奈安装总说找不到,后来在网上找到1方发,问题解决:
下载新版本,地址:http://ftp.de.debian.org/debian/pool/main/g/gcc⑷.7/libstdc++6_4.7.2⑸_i386.deb
对没错下载deb的安装包。
然后履行:
ar -x libstdc++6_4.7.2⑸_i386.deb
tar xvf data.tar.gz
会在当前目录生成1个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
然后下载官方原版:
借助1个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 "
1. Downloading Google Chrome.
"
if [ -f "${RPM_FILE}" ]; then
echo -e "
Using existing ${RPM_FILE}.
"
else
echo -e "
Downloading ${RPM_FILE}, ~ 55 MB.
"
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 "
Info 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 "
2. Extracting ${RPM_FILE}.
"
rm -rf google_chrome && mkdir google_chrome && cd google_chrome
rpm2cpio ../${RPM_FILE} | cpio -id --quiet
cd ..
这里会在当前目录解压出来1个chrome阅读器,可以先尝试下能否运行
cd opt/google/chrome
./google-chrome
如果可以运行,则
安装:
疏忽依赖强迫安装:rpm -ivh *.rpm --nodeps --force
完成。
生活不易,码农辛苦
如果您觉得本网站对您的学习有所帮助,可以手机扫描二维码进行捐赠