Install Fortran IDE GUI Photran

Photran is a Fortran IDE GUI based on Eclipse. Photran works with gfortran or Intel ifort compilers.

Install Photran

Note: the Eclipse version obtained via apt install is usually much too old.

  1. Download/install the current Eclipse version. In this example, “Oxygen” (Eclipse 4.6) was used.
  2. Extract and run the Eclipse installer (no sudo needed)
    tar xf eclipse-inst-linux64.tar.gz
    ./eclipse-installer/eclipse-installer
    
  3. Select “Eclipse for Parallel Application Developers”. It will install into ~/eclipse/parallel-oxygen.
  4. add t ~/.bash_aliases the line
    alias eclipse="$HOME/eclipse/parallel-oxygen/eclipse/eclipse"
    
  5. If using Intel Fortran compiler ifort, be sure ~/.bashrc has
    source /opt/intel/bin/compilervars.sh intel64
    
  6. Open a new Terminal. Type eclipse to open the Eclipse IDE.
  7. From Eclipse IDE, click Help→Install New Software
  8. in “work with” pick your currently installed version (here, Oxygen)
  9. Uncheck the “hide items that are already installed”
  10. Type “fortran” in the search box, and select under Programming Language → “Fortran Development Tools (Photran)” and “Linux Intel Fortran Compiler Support”

Notes

Leave a Comment