Hi,
I'm new to Linux, C programming and this forum, so I apologize if my question is out of place here but I'm hoping some of you could help me out.
I've been writing some simple C programs under Linux for a class I'm taking. Since I'm not a Linux user, I've been running Ubuntu in a virtual machine (VMare in case that's somehow relevant). Everything has been working fine until today I start up the VM and try to execute one of my programs ("mydiff" - one of the assignments for my course), only to get the following:
bash: ./mydiff: Permission denied
The first thing I tried was changing the file permissions, though I have no idea why they would have changed themselves, but I still have read and write permissions on the file. I noticed there was a checkbox for "allow executing file as program," which I enabled. Upon doing so I now receive this:
bash: ./mydiff: cannot execute binary file
So at this point I was pretty confused and since I only run the virtual machine for the purpose of C programming and don't have anything else on it, I decided to just copy my C programs over to Windows, delete the entire virtual machine and create a new one. I did that, copied the C files over again and am still getting the same error!
Note: this is NOT just happening with that one mydiff program but with ALL of my C programs. When I delete the binaries and compile new ones using the makefiles, I still get the same error.
Does anyone have an idea what is the cause of this?
Taylor