How to install gfortran r7/6/2023 ![]() There may be issues with installing gfortran on Monterey M1 chip, but I think the main problem is where my gfortran is located on my laptop. To install gfortran in your user space in such a way that it can be easily removed later, download and run the mac-fortran.sh script from the course website by opening a terminal and executing curl -O sh mac-fortran. I attempted to solve the issue by inputted this command in terminal: ln -s /usr/local/gfortran /opt/R/arm64īut I received a "Permission denied" output. Ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib'Ĭlang: error: linker command failed with exit code 1 (use -v to see invocation) I then followed the instructions on this link: and when following the steps to do a 'quick check' with C++, I receive these errors: ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.2.0/11.0.0' I downloaded and installed the gfortran from this website (gfortran 12-Dec 18, 2021): with no issues. I am trying to install Fortran on my MacBook MacOS Monterey (version 12.2.1) M1 chip laptop.
0 Comments
Leave a Reply. |