64 位 linux 机器上的 Android SDK
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2710499/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Android SDK on a 64-bit linux machine
提问by dzhelil
Is it possible to develop using the Android SDK on a 64-bit linux machine. The available SDK downloads seem to be just for 32-bit versions of Linux.
是否可以在 64 位 linux 机器上使用 Android SDK 进行开发。可用的 SDK 下载似乎仅适用于 32 位版本的 Linux。
采纳答案by Matt Huggins
Yes, it is. You need to install the ia32 libraries. Check out the Ubuntu Linux troubleshooting section.
是的。您需要安装 ia32 库。查看Ubuntu Linux 故障排除部分。
apt-get install ia32-libs
apt-get install sun-java6-jdk
回答by tommed
回答by imcaptor
You can build sdk yourself. I will try. The 32-bit version is very slow.
你可以自己构建sdk。我会尝试。32位版本很慢。
回答by MariuszS
Android SDK requires:
Android SDK 要求:
Fedora 17 64bit with Android SDK:
sudo yum install glibc.i686 zlib.i686 libstdc++.i686 ncurses-libs.i686
Fedora 20 64bit with Android SDK
sudo yum install glibc zlib libstdc++ ncurses-libs mesa-libGL-devel adb
带 Android SDK 的 Fedora 17 64 位:
sudo yum install glibc.i686 zlib.i686 libstdc++.i686 ncurses-libs.i686
带 Android SDK 的 Fedora 20 64 位
sudo yum install glibc zlib libstdc++ ncurses-libs mesa-libGL-devel adb
回答by notz
On (K)Ubuntu you need following 32-bit packages:
在 (K)Ubuntu 上,您需要以下 32 位软件包:
sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
sudo apt-get install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
for running the emulator you need that additional package:
要运行模拟器,您需要额外的包:
sudo apt-get install libsdl1.2debian:i386
回答by khagler
On CentOS 6.2 I got it working with the following:
在 CentOS 6.2 上,我使用了以下方法:
yum install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686
yum install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686
回答by Steffen Christensen
For openSUSE you can install the 32bit pattern package
对于 openSUSE,您可以安装 32 位模式包
su zypper install -t pattern 32bit
su zypper install -t 模式 32 位
回答by sebastianwagner
For Debian Wheezyyou have to enable multiarchand then install the dependent libraries as listed in the other answers or as needed by the binaries from the tools or platform-tools directory:
对于Debian Wheezy,您必须启用multiarch,然后根据其他答案中列出的或工具或平台工具目录中的二进制文件的需要安装依赖库:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386
For further libs check with ldd for referenced .so-files.
对于进一步的库,请使用 ldd 检查引用的 .so 文件。
platform-tools$ ldd adb linux-gate.so.1 => (0xf77bb000) librt.so.1 => /lib/i386-linux-gnu/i686/cmov/librt.so.1 (0xf779b000) libncurses.so.5 => not found libpthread.so.0 => /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 (0xf7781000) libstdc++.so.6 => not found libm.so.6 => /lib/i386-linux-gnu/i686/cmov/libm.so.6 (0xf775b000) libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf773e000) libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xf75db000) libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xf75d6000) /lib/ld-linux.so.2 (0xf77bc000)
So continue to install libncurses5:i386and libstdc++6:i386to be able to run
于是继续安装libncurses5:i386和libstdc++6:i386就可以运行了
platform-tools$ ./adb Android Debug Bridge version 1.0.31 ...
回答by Milan Krstic
For those who are using Slackware click here.
对于那些使用 Slackware 的人,请单击此处。
I tried it with current and it works.
我用电流试了一下,效果很好。
In short, you need to enable 32bit support by installing multilib packages.
简而言之,您需要通过安装 multilib 包来启用 32 位支持。
Steps:
脚步:
1) Download the package:
1) 下载软件包:
> wget -np -nH -r -A txz,tgz \
> http://slackware.com/~alien/multilib/14.0/
2) install packages:
2)安装包:
~/multilib$ \
> cd \~alien/multilib/14.0/
~/multilib/~alien/multilib/14.0/$ \
> su -c "upgradepkg --reinstall --install-new *.t?z"
3) install compatibility packages:
3)安装兼容包:
~/multilib/~alien/multilib/14.0/$ \
> su -c "upgradepkg --reinstall --install-new *-compat32/*/*.t?z"
Restart the system and voila.
重新启动系统,瞧。
回答by user1079877
For Ubuntu 13.1 ia32-libs is not available anymore. So, you can try this one:
对于 Ubuntu 13.1,ia32-libs 不再可用。所以,你可以试试这个:
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6