我正在使用Fedora 17 64位操作系统。即使安装了32位共享库,我也会遇到以下错误。
[2013-03-22 19:19:29 - adb] /usr/src/android-sdk-linux/platform-tools/adb: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
[2013-03-22 19:19:29 - adb] 'adb version' failed!
/usr/src/android-sdk-linux/platform-tools/adb:
加载共享库时出现错误:libncurses.so.5:无法打开共享对象文件:没有这样的文件或目录 [2013-03-22 19:19:29 - adb]无法解析'adb version'的输出:
我曾尝试安装以下库,但仍然无效
yum install ncurses-libs.i686
Loaded plugins: langpacks, presto, refresh-packagekit
No package ncurses-libs.i686 available.
Error: Nothing to do
Even After trying following command it didn't work.
yum install ncurses-libs.i686 libstdc++.i686 libgcc.i686
Loaded plugins: langpacks, presto, refresh-packagekit
updates/metalink | 3.6 kB 00:00
updates | 4.6 kB 00:00
updates/primary_db | 7.9 MB 00:24
No package ncurses-libs.i686 available.
Package libstdc++-4.7.2-2.fc17.i686 already installed and latest version
Package libgcc-4.7.2-2.fc17.i686 already installed and latest version
Nothing to do
答案 0 :(得分:1)
如果您在开发计算机上运行64位发行版,则需要使用apt-get ::
安装ia32-libs软件包apt-get install ia32-libs
了解更多信息http://developer.android.com/sdk/installing/index.html。
答案 1 :(得分:0)
尝试此命令:
yum install ncurses-libs.i686 libstdc++.i686 libgcc.i686
答案 2 :(得分:0)
这种情况正在发生,因为Android SDK是一个32位应用程序,需要一些32位共享库,
您可以修复:
$ sudo apt-get install ia32-libs
答案 3 :(得分:0)
我在centos上,以下依赖项将解决android构建问题
yum install ncurses-libs.i686 libstdc ++ 48.i686 libgcc.i686 zlib.i686