I am trying to get some code running which uses make
. I've downloaded and installed both MinGW (standard 32 bit) and TDM-GCCs flavor of MinGW on my 64-bit Windows 7 machine.
When I run make
(i.e. mingw32-make.exe
) in Administrator mode, I get the following error message:
Windows cannot access the specified path, or file. You may not have the appropriate permissions to access the item.
The weird/scary part is that, upon running, it immediately deletes the exe file.
I ran a checksum SHA1 as recommended in the comments using the Microsoft (R) File Checksum Integrity Verifier V2.05:
C:\path\to\folder>fciv.exe -sha1 mingw32-make.exe
//
// File Checksum Integrity Verifier version 2.05.
//
c8ae5c780ab7bed652883d6443b5bfe5e23d30c9 mingw32-make.exe
I don't understand what this output means, but maybe it's helpful to someone.
Notes:
- This happens regardless of where the file is located on my pc.
- This behavior is specific to the
make
program (others such asgfortran
andgcc
appear to be working fine) - Renaming the file makes no difference.
- I am an administrator on the pc
- Same behavior when I run the program from the explorer or command line.
- My anti-virus program (Avast) does not detect any problems with the file when I scan it.
- I got the MinGW setup file from this SourceForge page.
- I got the TDM-GCC web installer from this page.
- The file size is 219,662 bytes (from both the main MinGW and TDM-GCC packages)
- I have run
make
from the command line where I have started the command prompt by way of selectingRun as Administrator
in the context menu. - I have also tried to run
make
by selectingRun as Administrator
when I have it selected. - I run the command
mingw32-make
when this behavior occurs. I have also tried renaming it to things likemake
andfoo
with the same result. - The first time this happened with both MinGW it deleted the original file and I re-installed it using the
mingw-get
application. From thereon after I started making copies of the originalmingw32-make
for testing. - For the
make
executable, I have all permissions (including Read & execute) except the special permissions field.