Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Thread Tools Search this Thread
Old 17-04-2009
Join Date: Apr 2009
Posts: 68
Problem with running Executables

I have some executable files which does not executes as i double click on it number times and it also does not give any error, what kind of problem am facing
such as am having quake, the executable is quake so I go ./squake and it says this:

bash: ./squake: No such file or directory.

I had proper setup of that file, Is there a specific package I need installed so it recognizes the files and runs them or what?
Reply With Quote
Old 17-04-2009
Join Date: Jan 2009
Posts: 140
Re: Problem with running Executables

Is the file executable? Sometimes you need to change the permissions to make it run.

chmod o+x squake should allow the owner to run the file, or chmod +x squake for everyone to be able to run it. (You'll need to be either the owner of the file, or root to make these changes)
Reply With Quote
Old 17-04-2009
Join Date: Dec 2008
Posts: 183
Re: Problem with running Executables

1.) What I do is, read a file, stat() on the file, create a header for my tar file, write into the tar file. And after I do the same for the rest. Is this more or less correct?
Sure, doesn't sound too far off the mark . . .

2.) I am having trouble with executables. I open an executable with emacs, you see very strange things. If I copy and paste this into a new file, it does not want to run no matter the encoding I put. Also reading the executable, the "read" command, doesnt read beyond the first 10 characters no matter what.
Try opening your file in binary mode. You can do this by appending a "b" to whatever fopen() mode you are using.

3.) If you open with emacs the executable or a tar file, you see and stuff like that all over the place. This is what a tar command (for example) does to make sure everything is in blocks of 512. How do I imitate this? I cant just write as it doesn't work. (i am guessing is some binary code).
Reply With Quote

  TechArena Community > Software > Software Development
Tags: , ,

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads for: "Problem with running Executables"
Thread Thread Starter Forum Replies Last Post
Problem in running shared executables using Embedded Linux uClibc X-quisite Operating Systems 4 19-11-2010 07:34 AM
C compiler can't create executables GlassFish Operating Systems 5 13-03-2010 06:02 PM
Autorun CD using Batch file for Multiple Executables DANIEL 602 Windows Software 5 19-01-2010 09:54 PM
How do I convert my C programs to executables? Damien25 Software Development 5 16-01-2010 08:29 PM
error: C++ compiler cannot create executables Unix'EM Operating Systems 4 15-09-2009 06:27 PM

All times are GMT +5.5. The time now is 10:33 PM.