[26]_libstdc++.so.6: cannot open shared object file: No such file or directory

安装交叉编译工具链,导出环境变量和在~/.bashrc添加导出后执行如下,出现:

root@ubuntu:/usr/local/arm/arm-linux-uclibc-hi3520d/bin# arm-linux-uclibc-hi3520d-gcc -v
arm-linux-uclibc-hi3520d-gcc : error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

根据上面的提示,是自己虚拟机缺少libstdc++.so.6动态库,解决:

sudo apt-get install lib32stdc++6  

sudo apt-get install lib32z1

补充:首次在64位的Ubuntu上使用32位的交叉编译工具链,一般会出现上面的错误提示,我已经遇见好几次这问题,所以这问题迅速解决了。


猜你喜欢

转载自blog.csdn.net/qhzm72/article/details/79056808