LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-23-2011, 11:29 PM   #1
tensionwind
LQ Newbie
 
Registered: Nov 2011
Distribution: Ubuntu, Debian
Posts: 4

Rep: Reputation: Disabled
Question 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

Last edited by tensionwind; 11-23-2011 at 11:39 PM. Reason: said script when I meant live binary executables
 
Old 11-23-2011, 11:45 PM   #2
jimtony
Member
 
Registered: Jan 2011
Location: Shanghai,China
Distribution: fedora
Posts: 73
Blog Entries: 1

Rep: Reputation: 2
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.
 
1 members found this post helpful.
Old 11-23-2011, 11:54 PM   #3
tensionwind
LQ Newbie
 
Registered: Nov 2011
Distribution: Ubuntu, Debian
Posts: 4

Original Poster
Rep: Reputation: Disabled
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?
 
Old 11-24-2011, 12:13 AM   #4
jimtony
Member
 
Registered: Jan 2011
Location: Shanghai,China
Distribution: fedora
Posts: 73
Blog Entries: 1

Rep: Reputation: 2
Quote:
Originally Posted by tensionwind View Post
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.
 
Old 11-24-2011, 12:37 AM   #5
tensionwind
LQ Newbie
 
Registered: Nov 2011
Distribution: Ubuntu, Debian
Posts: 4

Original Poster
Rep: Reputation: Disabled
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to execute binaries located in a different directory pghosh06 Linux - Newbie 2 02-08-2011 03:46 PM
PlayOnLinux: Where are the install scripts located? Meson Linux - Desktop 0 10-06-2009 02:49 AM
reset pwd to root's current pwd? ataraktos2 Linux - General 10 04-26-2005 05:13 AM
where are boot scripts located matt_w_lambert Linux - General 3 01-11-2004 08:57 PM
cant execute any scripts Phonics3k Linux - Newbie 2 06-19-2002 09:00 AM


All times are GMT -5. The time now is 05:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration