- 1 year ago
Mingw/Msys looking for non-existent file msys-gfortran-5.dll
Comment
1 / 1
The error "mingw/msys looking for non-existent file msys-gfortran-5.dll" may occur when trying to compile or execute a program that requires the GNU Fortran Compiler (gfortran) on Windows using the MinGW/MSYS environment.
This error occurs when the required DLL file, msys-gfortran-5.dll
, is not found in the search path. This can happen if the environment variables are not set up correctly or if the DLL file is missing or corrupted.
To resolve this issue, try the following steps:
- Ensure that the MinGW/MSYS environment is set up correctly and that the required packages, including
gfortran
, are installed. - Check that the environment variables are set up correctly. The
PATH
environment variable should include the paths to thebin
folders of both MinGW and MSYS. - Check that the
msys-gfortran-5.dll
file is present in the correct directory. This file should be located in themingw64/bin
directory.
If the above steps do not resolve the issue, try reinstalling the MinGW/MSYS environment and the required packages. If the issue still persists, try downloading the msys-gfortran-5.dll
file from a trusted source and placing it in the mingw64/bin
directory.