LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot execute binary files located in PWD, Ubuntu 10.4 (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-execute-binary-files-located-in-pwd-ubuntu-10-4-a-915239/)

tensionwind 11-23-2011 10:29 PM

Cannot execute binary files located in PWD, Ubuntu 10.4
 
Hi.
(1st Post.)

I keep running into problems where after I have installed a command, even if I go into the directory, I cannot get it to execute by typing it's name.

chmod has been set to allow execution by owner, group, and all, but I am still not able to run the command even directly from where it is located.

I've tried setting the path, but the only thing that seems to make any headway is to make a symbolic link to the file and put that link into a directory that's in the path.

/usr/java/android-sdk-linux/platform-tools $ ls -l | grep adb
-rwxr-x-r-x 1 me me 159620 2011 -11-22 23:58 adb
/usr/java/android-sdk-linux/platform-tools $ adb
No command 'adb' found, did you mean:
Command 'cdb' from package 'tinycdb' (main)
Command 'gdb' from [...]
adb: commad not found
I have been trying to install Java and the Android Dev Kit on my new Ubuntu environment.

Is this a problem with my shell script execution settings?
Or is this a problem with the packages for the ADK or Java or what?

Please help.

-TensionWind

jimtony 11-23-2011 10:45 PM

You should use ./adb to execute this command.
Because the PATH didn't include the command's location,so you can not execute this command by inputting abd.

tensionwind 11-23-2011 10:54 PM

I have tried what you said and I got this result
Code:

/usr/java/android-sdk-linux/platform-tools$ ./adb
bash ./adb: No such file or directory

I tried again by adding . to the PATH

Code:

PATH=$PATH:.
But I got the same result.

Any other ideas?

jimtony 11-23-2011 11:13 PM

Quote:

Originally Posted by tensionwind (Post 4532413)
I have tried what you said and I got this result
Code:

/usr/java/android-sdk-linux/platform-tools$ ./adb
bash ./adb: No such file or directory

I tried again by adding . to the PATH

Code:

PATH=$PATH:.
But I got the same result.

Any other ideas?

Are you sure the abd file exists?THe error message told us no abd file.

tensionwind 11-23-2011 11:37 PM

jimtony, thanks for you help. I think I've figured it out.

I had a suspicion that if it was not a path error, then it might be a linking error, to some packages that weren't installed to allow the file to run.
I am running 64bit ubuntu, but I had read somewhere earlier that I would need some 32bit libraries to run the Android SDK. After some hunting I found out which of those libraries I needed, and that I did not have them already installed.

I just now did:
sudo apt-get install ia32-libs

and the packages were downloaded and installed. Now typing
Code:

adb
at the prompt gives me a help menu for the Android Debug Bridge, which is what I was expecting before. So, great!

Thanks for your help!


All times are GMT -5. The time now is 02:03 PM.