![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Networking & Wireless Having problems getting connected to the internet or getting your wireless card to work? Ask here. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
A Carafe of Ubuntu
![]() |
Arch compiled program won't execute? :(
EDIT: whole thing was badly worded.
Hi guys, I can't 'run' a program I've compiled? I type the name of it and nothing happens. If I type the start of the name and try to tab complete it, it still won't work I am fairly new to linux but I was under the impression when you download a tar file, you extract it (zxvf or zxcf, I can't recall) Then once it's extracted you sudo make and sudo make install (or make / make install) I'm trying to get aircrack-ptw woring and the 'executable' is coming up green in the shell when I do an ls WTF have I missed? Followed the instructions here too!? http://www.wirelessdefence.org/Conte...rcrack-ptw.htmhttp://www.wirelessdefence.org/Conte...rcrack-ptw.htm I didn't receive any errors when following those instructions either. Any advice would be really appreciated. Last edited by scottylans; May 2nd, 2007 at 08:30 AM.. |
|
|
|
|
|
#2 |
|
A Carafe of Ubuntu
![]() |
Re: Argh compiled program won't execute? :(
No one?
|
|
|
|
|
|
#3 |
|
A Carafe of Ubuntu
![]() |
Re: Arch compiled program won't execute? :(
Sorry to bump again, I've re-written it so it might make some more sense.
|
|
|
|
|
|
#4 |
|
A Carafe of Ubuntu
![]() |
Re: Arch compiled program won't execute? :(
Here is a screenshot of the problem!
http://members.iinet.net.au/~scottylans/screen01.png |
|
|
|
|
|
#5 |
|
Ubuntu addict and loving it
![]() |
Re: Arch compiled program won't execute? :(
The HOWTO you referred us to suggests the command is
Code:
./aircrack-ptw |
|
|
|
|
|
#6 | |
|
A Carafe of Ubuntu
![]() |
Re: Arch compiled program won't execute? :(
Quote:
Is there any way that I can make it so it works like a normal executable though? I just type 'airc' and hit tab? I can't even type airc(tab) in the same directory that it's located in!? |
|
|
|
|
|
|
#7 | |
|
Ubuntu addict and loving it
![]() |
Re: Arch compiled program won't execute? :(
Quote:
There might be some way to convert it to a "normal" executable, but I don't know it; maybe a 2,000 beaner will jump in! |
|
|
|
|
|
|
#8 |
|
Iced Almond Soy Ubuntu, No Foam
![]() Join Date: Nov 2006
Location: Medford, MA
Beans: 1,186
Ubuntu 9.10 Karmic Koala
|
Re: Arch compiled program won't execute? :(
You can create a link to it in your /usr/bin directory. Type this command:
Code:
sudo ln -s ~/aircrack-ptw /usr/bin/aircrack-ptw EDIT: Let me explain what's going on here. Typing "./commandname" will run a program whose executable is in your current directory. To run a program without the "./" part, it has to be located in a directory that is in your $PATH environment variable. You can view the contents of your path by typing the following command: Code:
echo $PATH
__________________
Ubuntuguide : Community documentation : psychocats tutorials : Restricted Formats : Root & Sudo Last edited by jfinkels; May 2nd, 2007 at 07:59 PM.. |
|
|
|
|
|
#9 | |
|
A Carafe of Ubuntu
![]() |
Re: Arch compiled program won't execute? :(
Quote:
Good god I'm shocked confused and dazed! You must be joking! I like Ubuntu but that has to be one of the most $!%^ING ridiculous things I've ever heard. Let me get this straight....... I'm an old dos guy. I understand the theory of how a path works and what it does, it lets you run files in select directories even if you're not in them - makes sense! HOWEVER if you're in a directory to an application and it's not in the path, you can still run that application because you happen to be in the directory for it, that's totally darn logical to me. You're saying that Ubuntu won't execture an application I'm _IN_ the directory for, unless i put ./ infront of it or add it to the path? That is _truely_ bloody stupid! Disclaimer: I hope I'm wrong, because I happen to like Ubuntu and I happen to like linux, sometimes people bash it for silly things and other times people bash it for things which it really does which is stupid but in this case, if I'm right, good lord is that really really REALLY illogical! P.S Your help is appreciated, despite my rant! |
|
|
|
|
|
|
#10 |
|
Iced Almond Soy Ubuntu, No Foam
![]() Join Date: Nov 2006
Location: Medford, MA
Beans: 1,186
Ubuntu 9.10 Karmic Koala
|
Re: Arch compiled program won't execute? :(
Ummm, I guess that's just the way it is. I can't tell you why or how, because I don't know. Using "./" to represent the current directory is a convention among other systems and languages. Doesn't seem like that much more of a hassle to me. Remember, Linux is not Windows (or DOS)!
I assume you understand the idea behind relative paths? "." means the current directory and ".." means the directory containing the current one. That's why it looks like "./command". To execute a command that is in the directory above the current one, you could run "../command". I suppose that typing "./command" is more specific, so in case you had an executable in your path with the same name, typing just "command" would execute the one in the path, and typing "./command" would execute the one in the current directory.
__________________
Ubuntuguide : Community documentation : psychocats tutorials : Restricted Formats : Root & Sudo |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|