emerge chromium-bin后运行chromium-bin出现
./chrome: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
emerge emerge alsa-utils就可以了,不过又出现GLIBCXX_3.4.9' not found的错误,这个错误比较头疼,之前就遇到过,网上查了发现是glibc的版本比gcc的版本高,其实这个在装完chromium-bin就提示了
# * Messages for package www-client/chromium-bin-0_p22046:
#
# * This binary requires the C++ runtime from >=sys-devel/gcc-4.2
# * If you get the "version `GLIBCXX_3.4.9' not found" error message,
# * switch your active gcc to a version >=4.2 with gcc-config
结果发现gcc-config -l有2个版本:
[1] i486-pc-linux-gnu-4.1.2 *
[2] i686-pc-linux-gnu-4.3.3
sudo gcc-config 2提示说更新到4.3.3,source /etc/profile后用gcc -dumpversion查看还是4.1.2,继续查,有个临时方法可以搞定,就是export LD_LIBRARY_PATH=`dirname "$0"`:/usr/lib/gcc/i686-pc-linux-gnu,看来得进/etc/env.d/看看,grep 486 *和grep 686 *比较一下,发现有两个gcc的配置文件,05gcc-i686-pc-linux-gnu,05gcc-i486-pc-linux-gnu,删掉486的,还有一个问题是05binutils里面的LDPATH=/usr/i486-pc-linux-gnu/lib,这个才是问题,所以重新升级下emerge sys-devel/binutils搞定。
阅读(1438) | 评论(0) | 转发(0) |