[root@localhost lib]# uname -a
Linux localhost.localdomain 4.2.1-1.el7.elrepo.x86_64 #1 SMP Mon Sep 21 20:01:19 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@localhost lib]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core)
[root@localhost lib]#
[root@localhost lib]# adb root
bash: adb: 未找到命令...
相似命令是: 'gdb'
--------------------------------
[root@localhost platform-tools]# pwd
/opt/android-on-linux/android-sdk-linux/platform-tools
[root@localhost platform-tools]# ls adb
adb
[root@localhost platform-tools]#
将 PATH=$PATH:/opt/android-on-linux/android-sdk-linux/platform-tools 添加到 /root/.bashrc 最后。
[root@localhost lib]# adb root
bash: /opt/android-on-linux/android-sdk-linux/platform-tools/adb: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
[root@localhost lib]# yum install glibc.i686
[root@localhost lib]# adb root
adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
[root@localhost lib]# yum install libstdc++.so.6
--------------------------------
阅读(1757) | 评论(0) | 转发(0) |