Configuring Fortran in Eclipse PTP via homebrew

Using homebrew on my El Capitan (10.11.6) I installed java and eclipse-ptp with the following commands:

brew cask install java
brew cask install eclipse-ptp

      

I have gcc and therefore gfortran via homebrew from earlier.

Eclipse PTP has been copied to applications successfully. I opened the app and created the helloworld demo project and tried to build it. I get the following message in the build console window:

make all 
make: gfortran: No such file or directory
gfortran -O2 -g \
        -o bin/demo \
        src/demo.f90
make: *** [all] Error 1

      

I understand that this problem could be caused by setting the path variable incorrectly, which I don't understand:

  • Given that all installations happened with homebrew, why is this problem happening?
  • How do I fix this problem?
+3


source to share





All Articles