LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-09-2005, 10:29 PM   #1
Shagrath239
Member
 
Registered: Jan 2005
Location: Santiago, Chile
Distribution: Looking towards LFS
Posts: 67

Rep: Reputation: 15
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.
 
Old 02-09-2005, 11:31 PM   #2
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
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
 
Old 02-10-2005, 12:11 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Try:
./quake2
or: /bin/sh ./quake2
if it's an installer script.
 
Old 02-10-2005, 02:49 PM   #4
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Maybe silly, but try using tab completion to enter the command.
 
Old 02-10-2005, 03:51 PM   #5
d00msweek
Member
 
Registered: Jan 2004
Location: Cebu City, Philippines
Distribution: Slackware 10,Gentoo 2005.1,LFS
Posts: 92

Rep: Reputation: 15
chmod +x quake
./quake

or

sh quake
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 01:19 AM
How to write a bash script to replace all "KH" to "K" in file ABC??? cqmyg5 Slackware 4 07-24-2007 09:00 AM
asdf linuxfond Linux - Software 1 07-20-2004 03:12 PM
asdf ChaosZ3RO Linux - Software 2 03-18-2004 04:18 PM
Can't locate object method "splitpath" via package "File::Spec" RobJohnston Linux - General 2 06-28-2003 09:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration