You are not logged in.

#1 2014-03-17 22:54:05

Juszr
Member
Registered: 2013-03-12
Posts: 87

Multilib - Cannot install 32-bit apps

Hi. I'm trying to run "adb" from the Android SDK, but i get a "file not found", and is i googled it turned that i need to install "ia32 libs", meaning in Arch, to install multilib repo. So i did, uncommented everything but nothing is installed by then, and cannot get adb to work:
Pacman.conf: http://pastebin.com/W9Sqb5ux
Mirrorlist: http://pastebin.com/ehkXTt9q
uname -a: Linux NatH 3.13.6-1-ARCH #1 SMP PREEMPT Fri Mar 7 22:47:48 CET 2014 x86_64 GNU/Linux

I ran already

pacman -Syyu

but it didnt work.

Any ideas?

Last edited by Juszr (2014-03-17 22:55:39)

Offline

#2 2014-03-17 23:02:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Multilib - Cannot install 32-bit apps

Have you tried another mirror?

Offline

#3 2014-03-17 23:03:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Multilib - Cannot install 32-bit apps

Juszr wrote:

Hi. I'm trying to run "adb" from the Android SDK, but i get a "file not found", and is i googled it turned that i need to install "ia32 libs", meaning in Arch, to install multilib repo. So i did, uncommented everything but nothing is installed by then, and cannot get adb to work


Please paste actual error messages: https://bbs.archlinux.org/viewtopic.php?id=57855


Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-03-17 23:04:34

Juszr
Member
Registered: 2013-03-12
Posts: 87

Re: Multilib - Cannot install 32-bit apps

karol wrote:

Have you tried another mirror?

Yes. I unchecked mirrors from the US, Australia and Israel, and nothing. I still cannot run ADB.

Last edited by Juszr (2014-03-17 23:05:38)

Offline

#5 2014-03-17 23:06:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Multilib - Cannot install 32-bit apps

pacman uses the first mirror that's working, so unless you comment out the Austrian Australian one, it's the only one tested.



Are you using the packages from the AUR?
https://wiki.archlinux.org/index.php/Android

Last edited by karol (2014-03-17 23:06:46)

Offline

#6 2014-03-17 23:09:55

Juszr
Member
Registered: 2013-03-12
Posts: 87

Re: Multilib - Cannot install 32-bit apps

# pacman -Syyu
:: Synchronizing package databases...
 core                     108.8 KiB   151K/s 00:01 [######################] 100%
 extra                   1467.4 KiB  1047K/s 00:01 [######################] 100%
 community                  2.1 MiB  1029K/s 00:02 [######################] 100%
 multilib                 114.7 KiB   181K/s 00:01 [######################] 100%
:: Starting full system upgrade...
 there is nothing to do

No, i just unzipped the ADT bundle from Google.

Last edited by Juszr (2014-03-17 23:12:33)

Offline

#7 2014-03-17 23:12:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Multilib - Cannot install 32-bit apps

Please post the exact command you run and the output - both for adb and updating your system. Also, post the output of 'file /path/to/adb'.

Offline

#8 2014-03-17 23:13:43

Juszr
Member
Registered: 2013-03-12
Posts: 87

Re: Multilib - Cannot install 32-bit apps

$ ADT/sdk/platform-tools/adb 
bash: ADT/sdk/platform-tools/adb: No such file or directory

$ file ADT/sdk/platform-tools/adb 
ADT/sdk/platform-tools/adb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped

Offline

#9 2014-03-17 23:17:41

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Multilib - Cannot install 32-bit apps

Follow the instructions in the wiki instead of using the ADT bundle. That's what the wiki is there for smile

https://wiki.archlinux.org/index.php/Android


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#10 2014-03-17 23:22:24

Juszr
Member
Registered: 2013-03-12
Posts: 87

Re: Multilib - Cannot install 32-bit apps

slithery wrote:

Follow the instructions in the wiki instead of using the ADT bundle. That's what the wiki is there for smile

https://wiki.archlinux.org/index.php/Android

Thanks but that doesn't really solve my problem. One package is out of date btw.
I see on those packages dependencies are "lib 32" libraries... is that what i need to install? Installing gcc-multilib is the solution?

Offline

#11 2014-03-17 23:44:34

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: Multilib - Cannot install 32-bit apps

You'll have to install the lib32 libraries mentioned in the PKGBUILD. If you believe it is outdated, why don't you update the PKGBUILD and use that to install? (change source array, change pkgver and pkgrel, updpkgsums, maybe fix build and package functions)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#12 2014-03-17 23:54:22

Juszr
Member
Registered: 2013-03-12
Posts: 87

Re: Multilib - Cannot install 32-bit apps

Installing all those 32-bit libraries did the job. Hope there'll be a package for doing this automatically.

Offline

#13 2014-03-17 23:56:45

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: Multilib - Cannot install 32-bit apps

Juszr wrote:

Hope there'll be a package for doing this automatically.

What do you think the PKGBUILD is for? ...


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#14 2014-03-18 00:01:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Multilib - Cannot install 32-bit apps

Juszr wrote:

Installing all those 32-bit libraries did the job. Hope there'll be a package for doing this automatically.

https://aur.archlinux.org/packages/an/a … k/PKGBUILD

if [[ $CARCH = x86_64 ]]; then
  depends=('java-runtime' 'lib32-alsa-lib' 'lib32-openal' 'lib32-libstdc++5'
           'lib32-libxv' 'lib32-ncurses' 'lib32-sdl' 'lib32-zlib' 'swt')
fi

Offline

#15 2014-03-18 00:01:52

Juszr
Member
Registered: 2013-03-12
Posts: 87

Re: Multilib - Cannot install 32-bit apps

No clue, i am a newbie, and as i wrote above, i didn't install it from AUR but downloaded bundle zip from Google.

Offline

#16 2014-03-18 00:03:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Multilib - Cannot install 32-bit apps

Juszr wrote:

No clue, i am a newbie, and as i wrote above, i didn't install it from AUR but downloaded bundle zip from Google.

In Arch Linux we use pacman to install packages, keep track of dependencies etc. Read the wiki about pacman, the AUR and friends.

Offline

#17 2014-03-18 21:37:56

Juszr
Member
Registered: 2013-03-12
Posts: 87

Re: Multilib - Cannot install 32-bit apps

Well, this is what i've done:
1) I installed all 32-bit dependencies:

java-runtime, lib32-alsa-lib, lib32-openal, lib32-libstdc++5, lib32-libxv, lib32-ncurses, lib32-sdl, lib32-zlib, swt

2) Downloaded adt*zip from Google.
3) Unzipped and added ~/ADT/sdk/tools and ~/ADT/sdk/platform-tools to my $PATH (if not, i get a strange error "app_combat...")

and.. WORKED!

Thanks everyone.

Offline

#18 2014-03-18 23:59:06

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Multilib - Cannot install 32-bit apps

Glad you figured it out, although why not install it from AUR?
Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB