LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   File named "asdf" cant be executed with ./asdf, and the file is there! (https://www.linuxquestions.org/questions/slackware-14/file-named-asdf-cant-be-executed-with-asdf-and-the-file-is-there-288368/)

Shagrath239 02-09-2005 10:29 PM

File named "asdf" cant be executed with ./asdf, and the file is there!
 
Title is just an example, here's the real deal:

This is odd... i just got the package for installing Quake 2 for Linux, i got everything right... ready to play... but when i try to exec the main file, named "quake2", the console says it just "doesnt exists", when its actually there!!!


What does it mean??? Is there any permission thing going on, disabling me to execute it or something like it...??


I dont know what to do... the file is there, i can see it with ls, but when i do ./ to the file... it just doesnt open...


What's the reason of this problem??? :(



Thanks.

wapcaplet 02-09-2005 11:31 PM

Perhaps the permissions are not set correctly. Make sure it is marked as "executable" - when you view it with 'ls -l', you should see an 'x' in the fields on the left. To make it executable, do:

Code:

chmod +x filename

gnashley 02-10-2005 12:11 AM

Try:
./quake2
or: /bin/sh ./quake2
if it's an installer script.

shilo 02-10-2005 02:49 PM

Maybe silly, but try using tab completion to enter the command.

d00msweek 02-10-2005 03:51 PM

chmod +x quake
./quake

or

sh quake


All times are GMT -5. The time now is 12:42 PM.