user18462847
user18462847

Reputation:

Why am I getting a "cannot open file" error with gfortran in MacOS Ventura?

I just updated to MacOS Ventura. No matter what Fortran code I try to compile, using something standard like:

gfortran my_code.f90 -o my_code.x

I get the error Fatal Error: cannot open input file

How do I resolve this? According to Software Update, everything is up-to-date.

Upvotes: 0

Views: 549

Answers (1)

Carl Norum
Carl Norum

Reputation: 224982

Ventura adds a lot more layers of access restrictions. Make sure the programs you need to use have "Full Disk Access" set if necessary:

enter image description here

Upvotes: 0

Related Questions