linux編譯Android原始碼的時候出錯:error while loading shared libraries: libstdc++.so.6
今天在拉取Android原始碼進行編譯的時候一直報錯,在這裡記錄一下:
[ 0% 1/81973] Yacc: applypatch <= bootable/recovery/edify/parser.yy
FAILED: out/target/product/generic_x86_64/obj/STATIC_LIBRARIES/libedify_intermediates/parser.cpp
/bin/bash -c "prebuilts/misc/linux-x86/bison/bison -d --defines=out/target/product/generic_x86_64/obj/STATIC_LIBRARIES/libedify_intermediates/parser.h -o out/target/product/generic_x86_64/obj/STATIC_LIBRARIES/libedify_intermediates/parser.cpp bootable/recovery/edify/parser.yy"
prebuilts/misc/linux-x86/bison/bison: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[ 0% 6/81973] Ensuring Jack server is installed and started
Jack server already installed in "/home/tongsiyu/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/tongsiyu/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
[ 0% 8/81973] target C++: libaudioprocessing_32 <= frameworks/av/media/libaudioprocessing/AudioMixer.cpp
ninja: build stopped: subcommand failed.
16:01:48 ninja failed with: exit status 1
從官方檔案中發現有兩個包包含這個檔案 ,一個是libstdc++6 ,一個是lib32stdc++6
解決辦法:
在終端輸入:
$sudo apt-get install libstdc++6
$sudo apt-get install lib32stdc++6
問題終於解決。
相關文章
- mongod: error while loading shared libraries: libstdc++.so.6GoErrorWhileC++
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- error while loading shared libraries: libclntsh.so.10.1ErrorWhile
- ggsci: error while loading shared libraries: libnnz11.soErrorWhile
- error while loading shared libraries: libgconf-2.so.4:ErrorWhileGC
- error while loading shared libraries: libgsl.so.27: cannot open shared objectErrorWhileObject
- Error while loading shared libraries: libreadline.so.7: cannot open shared objecErrorWhileOBJ
- MongoDB報錯mongorestore: error while loading shared libraries: libsasl2.so.2MongoDBRESTErrorWhile
- 故障解決:error while loading shared libraries: libncurses.so.5ErrorWhile
- MySQL 5.7初始化報錯error while loading shared libraries: libnuma.so.1MySqlErrorWhile
- ./XXX.XX: error while loading shared libraries: libGLEW.so.2.1: cannot open shared object file: NoErrorWhileObject
- linux puppeteer 截圖提示缺少chrome-linux/chrome error while loading shared libraries: libXdamage.so.1LinuxChromeErrorWhile
- rpm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such fi...ErrorWhileGCObject
- error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: NErrorWhilePythonObject
- AndroidStudio編譯時報錯Error:Please select Android SDKAndroid編譯Error
- MacOS X 編譯Android原始碼Mac編譯Android原始碼
- Android FrameWork 之原始碼編譯AndroidFramework原始碼編譯
- android 反編譯APK取原始碼。Android編譯APK原始碼
- Android10.0 系統解析(02)——搭建Android原始碼編譯除錯環境Android原始碼編譯除錯
- Android 11 原始碼下載+編譯教程Android原始碼編譯
- 編譯除錯Net6原始碼編譯除錯原始碼
- Ubuntu 15.04編譯Android 6.0.1原始碼-Nexus5真機編譯Ubuntu編譯Android原始碼
- Mac Android8.0原始碼編譯筆記MacAndroid原始碼編譯筆記
- Idea除錯Rocketmq原始碼編譯執行Idea除錯MQ原始碼編譯
- android 打包出現錯誤Error: ResourceNameAndroidError
- LINUX下編譯原始碼時所需提前安裝的常用依賴包列表Linux編譯原始碼
- Linux環境PostGIS原始碼編譯安裝Linux原始碼編譯
- linux下基於官方原始碼編譯ipoptLinux原始碼編譯
- cython 編譯python程式碼時候找不到Python.h編譯Python
- Linux中程式包管理及程式的原始碼編譯Linux原始碼編譯
- Android高版本P/Q/R原始碼編譯指南Android原始碼編譯
- A40i &T3 全原始碼編譯-ARM Linux核心在PC Linux的編譯方法原始碼編譯Linux
- windows 下使用 mingw編譯器 除錯時 無法跟進原始碼Windows編譯除錯原始碼
- Spark原始碼編譯與匯入IDEA除錯Spark原始碼編譯Idea除錯
- QT中文編譯出錯QT編譯
- Android Apk反編譯系列教程(三)Android Studio除錯smali程式碼AndroidAPK編譯除錯
- Android AOSP基礎(二)是時候下載Android9.0原始碼了Android原始碼
- linux-原始碼的編譯安裝和解除安裝Linux原始碼編譯