LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-19-2019, 02:32 AM   #16
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,836

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308

Quote:
Originally Posted by Johnny Faster View Post
I assume that if you run an executable file FROM the directory it's located in, there should be no reason why it won't run.
That is false.
There is a variable (name: PATH) which will hold a list of directories where the specified executable should be placed. Otherwise it will not be found. The current dir is not in the list (by default).
From the other hand an adb.exe is a windows executable and cannot be executed in a linux box. This is simply a different OS, using different kind of binaries/executables. Trying to install windows programs on linux is just pointless (there is only one [a few] exception, if you want to run it in a windows emulator - this is called Wine).
Kali is definitely not designed to [be able to] run wine and windows executables.

Last edited by pan64; 10-19-2019 at 02:33 AM.
 
Old 10-19-2019, 02:36 PM   #17
Johnny Faster
Member
 
Registered: May 2006
Location: Texas
Distribution: Ubuntu 6.06
Posts: 74

Original Poster
Rep: Reputation: 25
Okay first, thanks for the response.

Second, I think I may have found the problem; the reason why "adb" results in "command not found".

http://bugs.kali.org/view.php?id=135

Quote:
Unexpected exception 'Cannot run program "/usr/share/android-sdk/platform-tools/adb":java.io.IOException:error=2,No such file or directory 'while attempting to get adb version from '/usr/share/android-sdk/platform-tools/adb'
Quote:
need ia32-libs
Quote:
[solved]

dpkg --add-architecture i386
apt-get update
apt-get install ia32-libs
apt-get install lib32ncurses5
Quote:
Updated android-sdk in android-sdk_22.0.1-1kali0 and it will be in the repos soon. The ia32-libs and dpkg-architecture changes have not been implemented as they would result in a much, much larger iso for very few people on 64bit that need to use certain tools such as this.

Thanks for the report.
So, from this my theory is that the abd.exe is a legit linux file, but it won't execute because it needs this "ia32-libs", which I assume is a library. Either that or I somehow managed to download extract the ABD for Windows instead of the ABD for Linux. And/or maybe you are correct on the whole question of whether or not a linux executable will run from the current directory when terminal is set for the current directory. That seems very counter-intuitive to me, but on the chance that you are correct, I'll continue trying to figure out how to modify the ".bash_profile" file. At this point, I question if it even exists on Kali. Thus far I've not found a resource that explicitly aays that Kali even has a .bash_profile file.


Quote:
Originally Posted by pan64 View Post
That is false.
There is a variable (name: PATH) which will hold a list of directories where the specified executable should be placed. Otherwise it will not be found. The current dir is not in the list (by default).
From the other hand an adb.exe is a windows executable and cannot be executed in a linux box. This is simply a different OS, using different kind of binaries/executables. Trying to install windows programs on linux is just pointless (there is only one [a few] exception, if you want to run it in a windows emulator - this is called Wine).
Kali is definitely not designed to [be able to] run wine and windows executables.
I'll re-download the ADB for Linux package and extract it, and see if that makes a difference.
 
Old 10-20-2019, 07:16 PM   #18
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
......

Last edited by rigor; 10-20-2019 at 07:20 PM.
 
Old 10-20-2019, 07:19 PM   #19
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
. . .

Last edited by rigor; 10-20-2019 at 07:21 PM.
 
  


Reply



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
Triple-boot Kali 2.0/LXLE 14.04.2/Win7 - USB 3.0 file transfer issues in Kali MX372 Linux - Hardware 4 10-10-2015 07:06 PM
Failed to fetch http://http.kali.org/kali/dists/kali/Release.gpg aymeric75 Linux - General 2 07-11-2015 05:10 AM
Port Forward Between IPTABLES and Android Debug Bridge (ADB) SpudNix Linux - Networking 1 03-07-2015 12:56 PM
Cannot edit blog comment from Android… edit box freezes as it is starting Kenny_Strawn LQ Suggestions & Feedback 3 01-05-2011 06:26 PM
[debug]what does the following debug information mean icoming Programming 21 06-08-2004 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:14 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
Open Source Consulting | Domain Registration