I am trying to run a FORTRAN program in Ubuntu. Code has been compiled and the result is that I have the following 2 files:
sfsptest2.exe
yyVx6634XC.INP
These files are located in: /home/user_test/FileList
At the Ubuntu command line, I enter:
cd FileList/
./sfsptest2.exe yyVx6634XC.INP
I get
bash: ./sfsptest2.exe: Permission denied
If I use:
gfortran sfsptest2.exe yyVx6634XC.INP
I get this error message:
/usr/bin/ld:yyVx6634XC.INP: file format not recognized: treating like linker script
/usr/bin/ld:yyVx6634XC.INP:1: syntax error
collect2: error: ld returned 1 exit status
Is there a way to run this FORTRAN .exe
file from the terminal in Ubuntu?
EDIT:
The *.exe
file was produced in Windows with a FORTRAN 95 compiler.
ls -l sfsptest2.exe
?chmod +x sfsptest2.exe
and then try again.*.exe
file was produced by compiling FORTRAN code in Windows with a FORTRAN 95 compiler.