You are not logged in.

#1 2013-01-17 17:49:08

dancer69
Banned
Registered: 2011-08-05
Posts: 66

command not found on running binary files.

I have a very strange problem with my new arch installation, which I never faced on other linux installations/distros.
I'm trying to execute binary files from android-sdk, which I have them from other distros and always worked, and I get always "command not found" message. For e.g I tried to run adb(5 different files from different places), from terminal and from the folder in which is each and all times I get "command not found" message.
Some other work though, as eclipse binary. All files I've tried worked fine, and also work fine if I run them from Ubuntu installation.
I had this problem and for some newly isntalled packages too, as packagkit, and rutorrent. Packagekit worked after a reboot, but rutorrent gives same message.
Any help?

Offline

#2 2013-01-17 18:02:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: command not found on running binary files.

Are these binaries for the right architecture, do you have the libs they are compiled against, and (most likely issue) are they in your $PATH and/or do you use a full/relative path to the binary when you try to launch it?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-01-17 18:15:14

dancer69
Banned
Registered: 2011-08-05
Posts: 66

Re: command not found on running binary files.

Yes are all same architecture, and for e.g QtADB(have it 3 times) the one runs and the other two no(all work on other distros). And I run them from the same directory or with full path(nothing works). Also when a lib missed or the binary is for different architecture the error message is different.

Offline

#4 2013-01-17 18:19:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: command not found on running binary files.

Could you give the exact command and error message from one of these examples?

If you are in the directory of the binary, and you do `./QtADB` and it return "bash: QtADB: command not found" then what does ls -l return?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2013-01-17 18:29:51

dancer69
Banned
Registered: 2011-08-05
Posts: 66

Re: command not found on running binary files.

user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ QtADB
bash: QtADB: command not found
user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition sad $ ./QtADBbash: ./QtADB: No such file or directory
user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition sad $ sh ./QtADB
./QtADB: ./QtADB: cannot execute binary file
user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition sad $ sh QtADB
QtADB: QtADB: cannot execute binary file
user-arch@archusrxpc /home/@solushome/user-solus/QtADB-cwm_edition sad $ ls -l
σύνολο 2940
-rw-rw-r-- 1 user-arch 1000    5259 Απρ  13  2012 Changes.txt
-rw-rw-r-- 1 user-arch 1000   25330 Ιούν 26  2012 debug.log
-rwxrwxr-x 1 user-arch 1000 2970612 Απρ  13  2012 QtADB
drwxr-xr-x 1 user-arch 1000       0 Ιούν 26  2012 tmp
drwxrwxr-x 1 user-arch 1000     366 Μάρ  13  2012 tools
user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $

Last edited by dancer69 (2013-01-17 18:30:23)

Offline

#6 2013-01-17 20:32:50

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: command not found on running binary files.

For QtADB do you have libraries needed? Especially ADB itself which is a part of the SDK and I would install it from the AUR.

QtADB
http://forum.xda-developers.com/showthread.php?t=683223 (Libraries under step 9.)

SDK
https://aur.archlinux.org/packages/android-sdk/

Last edited by doug piston (2013-01-17 20:34:56)

Offline

#7 2013-01-17 21:16:53

dancer69
Banned
Registered: 2011-08-05
Posts: 66

Re: command not found on running binary files.

I know about all these an are ok.
Seems that, same happens(at least for QtADB) on SolusOs, which is an unfrotunate qoinsidence, because I've used it on last time I was login to SolusOs before isntall arch(in fact I installed arch from SolusOs). So, maybe there isn' t arch's fault. This doesn' t explain the similar issue with the apps which installed via pacman as packagekit or rutorrent.

Last edited by dancer69 (2013-01-17 22:12:13)

Offline

#8 2013-01-17 21:21:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: command not found on running binary files.

(Removed post based on misunderstandings from typos.)

Last edited by Trilby (2013-01-18 00:56:12)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2013-01-18 05:08:42

vadmium
Member
Registered: 2010-11-02
Posts: 63

Re: command not found on running binary files.

dancer69 wrote:

bash: ./QtADB: No such file or directory

This is the error message you get when the ELF loader, that loads the program into memory, is missing.

What architecture are you running? 32 bit or x86-64? You can find out the ELF loader aka interpreter by using the readelf command:

$ readelf --segments /bin/bash
. . .
  INTERP         0x0000000000000238 0x0000000000400238 0x0000000000400238
                 0x000000000000001a 0x000000000000001a  R      1
      [Requesting program interpreter: /lib/ld-linux-x86-64.so.2]
. . .

Then see if there is any problem with the relevant “interpreter” for your programs.

Offline

#10 2013-01-18 09:47:45

dancer69
Banned
Registered: 2011-08-05
Posts: 66

Re: command not found on running binary files.

I'm running only 64bit architectures the last 3 years to this pc, and the /home partition from which I tried all these different binary files is a btrfs partition on another disk which I use as home for all linux installations. Just I have different usernames for every different installation. At this time I have only Arch and SolusOs, so these 2 usernames are part of a linux installations. I have also 3 more folders with usernames from older and deleted installations. Yesterday I checked 2 problematic(on Arch) files from SolusOs and I get the same error. So for these files problably the problem is on partition or the integrity of the files.
The first time I faced this issue was from packagekit and rutorrent(and I think one more package which I don't remember which one was, because, as packagekit, the error disappears after a reboot) installations though, so this lead me to think that was Arch' s problem. But on Arch I haven' t more cases right now, and needed more tests to confirm that is a general fault behaviour. So I'll post if/when have more cases of problematic binaries.

Last edited by dancer69 (2013-01-18 09:49:18)

Offline

#11 2013-01-23 16:01:20

dancer69
Banned
Registered: 2011-08-05
Posts: 66

Re: command not found on running binary files.

I'm bringing back this thread, because I have still problem with command not found on binaries, on Android-SDK.
I just today redownload the sdk(because of the previous errors). I downloaded the package with sdk and eclipse(64bit) from google.
The problem is that I have problems on Eclipse because again adb doesn't recognized, and also aapt, emulator, and probably other binaries, because I cannot build any project(I get always error about: R cannot resolved as a variable, even on new projects with default values without to change/add/remove enything).

Offline

#12 2013-01-23 16:16:58

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: command not found on running binary files.

If you are downloading and installing them yourself where are you installing them and are you including them in your path? I also believe you would be far better suited installing these packages from the AUR.

Unless you give us more info then 'I installed them from google' there isn't much one can do to lend a hand.

Offline

#13 2013-01-23 16:54:36

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: command not found on running binary files.

Do you have the mutillib repo enabled? android-sdk-platform-tools has a few 32bit dependencies which you may be missing if you installed "manually".

Both / all the apps you are after are in the AUR - the main purpose of which is to avoid this sort of situation.

Missing multilib libraries may also explain some of your other woes wink

Offline

#14 2013-01-23 20:32:46

dancer69
Banned
Registered: 2011-08-05
Posts: 66

Re: command not found on running binary files.

No I haven't. I enabled it and I installed the libtool-multilib package, and this solved the not found error(at least on adb and emulator which I tested). So hopefully the command not found problem solved.
Thanks.
I still have problems with eclipse though.

EDIT:
Eclipse problem solved too, needed some more 32libs.

Last edited by dancer69 (2013-01-23 21:07:19)

Offline

Board footer

Powered by FluxBB