Android Sdk On CentOS7 64-bit.

Home » CentOS » Android Sdk On CentOS7 64-bit.
CentOS 9 Comments

trying to use the android sdk on CentOS 7 and cant seem to find the
32bit libs..

[jason@CentOS7 platform-tools]$ ./adb devices
-bash: ./adb: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
[jason@CentOS7 platform-tools]$

whats the right way to isntall the needed 32bit libs? I cant seem to find them with yum provides.. Ive tried multilib_policy

9 thoughts on - Android Sdk On CentOS7 64-bit.

  • [root@CentOS7 Packages]# yum install /lib/ld-linux.so.2
    Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager This system is not registered with Subscription Management. You can use subscription-manager to register. epel/x86_64/metalink | 12 kB 00:00:00
    ftp_repo | 3.6 kB 00:00:00
    Loading mirror speeds from cached hostfile
    * epel: http://ftp.cse.buffalo.edu No package /lib/ld-linux.so.2 available. Error: Nothing to do

  • you need to use yum’s “whatprovides” facility to find the package that has the ld-linux.so.2 library.

    ———— Original Message ———-

  • yeah, that still doesnt work..

    [jason@CentOS7 platform-tools]$ yum whatprovides /lib/ld-linux.so.2
    Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager Determining fastest mirrors
    * epel: archive.linux.duke.edu No matches found
    [jason@CentOS7 platform-tools]$ yum whatprovides ld-linux.so.2
    Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager Loading mirror speeds from cached hostfile
    * epel: archive.linux.duke.edu No matches found
    [jason@CentOS7 platform-tools]$ yum whatprovides */ld-linux.so.2
    Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager Loading mirror speeds from cached hostfile
    * epel: archive.linux.duke.edu No matches found
    [jason@CentOS7 platform-tools]$ yum whatprovides ‘*/ld-linux.so.2’
    Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager Loading mirror speeds from cached hostfile
    * epel: archive.linux.duke.edu No matches found
    [jason@CentOS7 platform-tools]$
    [jason@CentOS7 platform-tools]$ sudo yum provides */ld-linux.so.2
    Loaded plugins: fastestmirror, langpacks, product-id, subscription-manager This system is not registered with Subscription Management. You can use subscription-manager to register. Loading mirror speeds from cached hostfile
    * epel: http://ftp.cse.buffalo.edu No matches found
    [jason@CentOS7 platform-tools]$

    seems like im missing the 32bit libs repo?

    Jason

  • Do you have the standard CentOS repos disabled? I’m only seeing EPEL
    in your output. What you need is in the CentOS base repo.

    With the CentOS base repo enabled, Gordon’s command would have worked too — I just always figure out the exact package(s).

    yum whatprovides /lib/ld-linux.so.2

    glibc-2.17-78.el7.i686 : The GNU libc libraries
    Repo : base
    Matched from:
    Filename : /lib/ld-linux.so.2

    ———— Original Message ———-

  • you are correct sir.. something is screwed up!

    I remember running into a problem with the base repo enabled and swept it under the rug by disabling it for the moment and then forgot all about disabling it.. So when I enable the base repo, and run yum with debug flag, I see the following:

    Setting up Package Sacks http://mirror.CentOS.org/CentOS/%24releasever/os/x86_64/repodata/repomd.xml:
    [Errno 14] HTTP Error 404 – Not Found Trying other mirror.

    now where does CentOS get this variable from that’s getting messed up?

    thanks/regards, Jason

  • Is this really a CentOS-7 install? The message “This system is not registered with Subscription Management.” that you got from yum is something you’d get from an unregistered RHEL system I believe. Also, the yum plugins “product-id, subscription-manager” aren’t standard with a CentOS install.

    What does a “cat” of /etc/system-release show?

    ———— Original Message ———-

  • Weird. %24 is a URL-encoded representation of ‘$’, which is what would normally be in that position. Look closely at the baseurl definition in
    [base].

    It’s normally commented out in favor of the mirrorlist, anyway:

    [base]
    name