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


Click here to return to the 'Making sure it's executable' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
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 | # ]