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++
- error while loading shared librariesErrorWhile
- 使用SRVCTL時報錯:error while loading shared librariesErrorWhile
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- ./ggsci: error while loading shared librariesErrorWhile
- sqlplus: error while loading shared librariesSQLErrorWhile
- Mysql的error while loading shared libraries解決方法MySqlErrorWhile
- 解決"error while loading shared libraries: libclntshErrorWhile
- error while loading shared libraries 錯誤解決辦法總結ErrorWhile
- error while loading shared libraries: libaio.so.1ErrorWhileAI
- Error while loading shared libraries: libssl.so.6:ErrorWhile
- 錯誤 error while loading shared libraries: libclntsh.so.9.0 的解決ErrorWhile
- sqlplus: error while loading shared libraries的解決方案SQLErrorWhile
- error while loading shared libraries: libclntsh.so.10.1ErrorWhile
- innobackupex: error while loading shared libraries: libssl.so.6ErrorWhile
- glodengate配置時報ggsci: error while loading shared librariesErrorWhile
- ORACLE SQLPLUS 報 error while loading shared libraries[轉]OracleSQLErrorWhile
- error while loading shared libraries: libcap.so.1: cannot open sharedErrorWhile
- MongoDB報錯mongorestore: error while loading shared libraries: libsasl2.so.2MongoDBRESTErrorWhile
- error while loading shared libraries: libgsl.so.27: cannot open shared objectErrorWhileObject
- error while loading shared libraries: libgconf-2.so.4:ErrorWhileGC
- ggsci: error while loading shared libraries: libnnz11.soErrorWhile
- error while loading shared libraries: libstdc++.so.5: cannot openErrorWhileC++
- csscan: error while loading shared libraries: libclntsh.so.10.1CSSErrorWhile
- sqlldr執行報錯:error while loading shared libraries: libclntsh.so.10.1:SQLErrorWhile
- 【故障處理】csscan工具無法使用,報錯“error while loading shared libraries...”CSSErrorWhile
- error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No suchErrorWhileIBMMySqlclientObject
- 故障解決:error while loading shared libraries: libncurses.so.5ErrorWhile
- sqlplus: error while loading shared libraries: libaio.so.1:SQLErrorWhileAI
- MySQL 5.7初始化報錯error while loading shared libraries: libnuma.so.1MySqlErrorWhile
- 錯誤"error while loading shared libraries: xxx.so.x" 的原因和解決辦法ErrorWhile
- error while loading shared libraries: xxx.so.x"錯誤的原因和解決辦法ErrorWhile
- "error while loading shared libraries: xxx.so.x" 錯誤的原因和解決辦法ErrorWhile
- sqlplus: error while loading shared libraries: libsqlplus.soSQLErrorWhile
- [mysql]error while loading shared libraries: libaio.so.1: 解決方案MySqlErrorWhileAI
- Error while loading shared libraries: libreadline.so.7: cannot open shared objecErrorWhileOBJ
- error while loading shared libraries: libodm9.so: cannot open shared object file: No such file or diErrorWhileObject
- root.sh / vipca: error while loading shared libraries: libpth read.so.PCAErrorWhile