错误: libstdc++.so.6: cannot open shared object file: No such file or directory

解压完别人提供的openwrt代码,编译时,出现如下错误:

 

# configuration written to .config
#
mips-openwrt-linux-uclibc-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
mips-openwrt-linux-uclibc-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
mips-openwrt-linux-uclibc-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
mips-openwrt-linux-uclibc-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
mips-openwrt-linux-uclibc-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      kernel/bounds.s
mips-openwrt-linux-uclibc-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
/home/xyz/home/XXX/XXX/trunk/yyy/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/linux-3.10.49/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[6]: *** [kernel/bounds.s] Error 127
Makefile:835: recipe for target 'prepare0' failed

解决方案:

 

rm -rf tmp/

rm -rf staging_dir

rm -rf build_dir

make V=s

 

posted @ 2015-12-14 09:46  hbg-rohens  阅读(2329)  评论(0编辑  收藏  举报