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. |
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 |
Try:
./quake2 or: /bin/sh ./quake2 if it's an installer script. |
Maybe silly, but try using tab completion to enter the command.
|
chmod +x quake
./quake or sh quake |
All times are GMT -5. The time now is 12:42 PM. |