English
Ask Your Question
1

Installing android-sdk on 64-bit Fedora

asked 2012-03-16 03:31:10 +0000

Jason gravatar image

updated 2013-09-10 14:03:45 +0000

I'm having trouble installing the Android sdk in Eclipse. I'm running 64-bit Fedora which may be related.

This question is semi-related: http://ask.fedoraproject.org/question/365/how-do-i-install-32bit-libraries-on-a-64-bit

I'm getting this error in eclipse:

[2012-03-15 17:07:21 - DDMS] DDMS files not found: /home/jason/platform-tools/adb /home/jason/tools/hprof-conv /home/jason/tools/traceview 
[2012-03-15 17:08:38 - adb] Failed to get the adb version: Cannot run program "/home/jason/programs/android-sdks/platform-tools/adb": java.io.IOException: error=2, No such file or directory

And when I run adb from the command line I get: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory which seems to be related to 64-bit versus 32-bit.

edit retag flag offensive close delete

Comments

Well, I had the same problem under F17, and I fixed it following the steps Jason gave, with the downgrade correction given by kedzie. And now mine works, too.

Even nicer to notice, I see that though Fedora calls it a 'downgrade', typing "yum info libstdc++*" shows that it really does leave both the original 64 bit and the 'downgrade' to 32 bit installed.

mejohnsn ( 2013-06-22 01:39:33 +0000 )edit

Thanks Jason - old post I know but you just helped this linux n00b complete setting up of ADB on a new Fedora 19 installation. Much appreciated!

To simplify, you can just run the following one-liner:

sudo yum install libstdc++.i686 ncurses-libs.i686 zlib.i686

jBainesy ( 2013-09-10 13:20:13 +0000 )edit

4 Answers

Sort by ยป oldest newest most voted
1

answered 2012-03-16 03:50:37 +0000

Jason gravatar image

updated 2012-03-16 05:24:26 +0000

After looking at the answer to the other question a little more deeply it looks like these are the libraries I need:

sudo yum install libstdc++.i686
sudo yum install ncurses-libs.i686
sudo yum install zlib.i686

And it seems to be working!

edit flag offensive delete publish link more
0

answered 2012-05-12 22:13:48 +0000

kedzie gravatar image

updated 2012-05-12 22:15:04 +0000

On Fedora 17 you won't be able to install libstdc++.i686 due package version constraints. The solution is to do:

yum shell    
downgrade libstdc++   
install libstdc++.i686  
run
edit flag offensive delete publish link more
0

answered 2012-11-26 09:20:40 +0000

Jomoos gravatar image

Although late, here is what I did. I was also ran into the problem of running android-sdk on my 64-bit fedora 17. Searching on Google take me to this link: HOWTO Setup Android Development and it worked for me. Here is the important section from there:

If you have 64-bit systems, you will need to install some 32bit packages, because Android SDK is 32bit.

yum install glibc.i686 glibc-devel.i686 libstdc++.i686 \
            zlib-devel.i686 ncurses-devel.i686 \
            libX11-devel.i686 libXrender.i686 \
            libXrandr.i686
edit flag offensive delete publish link more
0

answered 2012-08-10 01:07:34 +0000

Thanks, this solves half of my problem XD, the other half here http://stackoverflow.com/questions/10005907/eclipse-android-plugin-libncurses-so-5/11894126#11894126

if any one have this problem too

edit flag offensive delete publish link more

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

Add answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers to your questions.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question tools

Follow
1 follower

Stats

Asked: 2012-03-16 03:31:10 +0000

Seen: 15,473 times

Last updated: Sep 10 '13