Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Compiling nbtscan-1.5.1' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Compiling nbtscan-1.5.1
Authored by: olmy on Dec 16, '03 11:10:41AM

I'm a Mac person (17" G4 PB running 10.2.8) who wants to learn about UNIX and as such am a newcomer to UNIX syntax, so this may seem to be a silly question. I am trying to install the "nbtscan-1.5.1.tar.gz" utility. Using Terminal I moved the package file from my desktop to the "/usr/bin" directory where it looked like all the other Terminal utilities were stored. I then unpacked it using your directions and it unpacked itself as a folder full of stuff called "nbtscan-1.5.1a". Then I typed "./configure" and it said "command not found". I changed my working directory from "usr/bin" to "usr/bin/nbtscan-1.5.1a" and typed "configure" (which is the name of a file in there) but got the same result. What am I missing? Thanks for your help!



[ Reply to This | # ]
Making sure it's executable
Authored by: osxpounder on Dec 17, '03 10:13:32AM
I'm no UNIX expert, but:

In Terminal, look at a listing of that directory you mention, the one that has the file "configure" in it, but type the ls command as follows:

ls -la|more

[If there are too many files to show in the window, the 'more' keeps the list from scrolling until you whack the space bar]

Listing the files this way shows you what permissions are set on each file, over at the far left. You want to see if the 4th place over from the left has an 'x' in it, as follows:

-rwxr--r-x 1 james james 169 12 Dec 17:32 foo

The above example shows a file that is executable, and I know because of the 4th character from the left: it's an 'x' instead of a dash ['-'].

If you don't see an 'x' there, you need to use the chmod command to make your file executable:

chmod u+x foo

Pardon me if I've just explained something you already knew! I started this post yesterday and just now noticed I hadn't finished it yet.

---
--
osxpounder

[ Reply to This | # ]