Skip to main content
Jump to: navigation, search

PTP/photran/installation

< PTP‎ | photran
Revision as of 17:21, 5 May 2009 by Overbey2.illinois.edu (Talk | contribs) (New page: == System Requirements == To install Photran 4.0 beta 5, # you must have '''Eclipse 3.4 (Ganymede)''' installed, # you must have the '''C/C++ Development Tools (CDT) 5.0''' installed, # E...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

System Requirements

To install Photran 4.0 beta 5,

  1. you must have Eclipse 3.4 (Ganymede) installed,
  2. you must have the C/C++ Development Tools (CDT) 5.0 installed,
  3. Eclipse must be running on a Java 1.5 or later JVM (to get reasonable performance, we recommend Sun [1] or IBM's [2] JVM), and
  4. if you want to compile and build Fortran applications, you must have a make utility and a Fortran compiler in your system path. Many Linux/Unix systems include these; details on installing them in Windows are below.

Installation Procedure

To install Photran, start Eclipse 3.4, then...

  1. Click on Help > Software Updates...
  2. Click on the "Available Software" tab
  3. Click on "Add Site..."
  4. Click Archive...
  5. Choose the zip file you downloaded from [3]
  6. Click OK to close the Add Site dialog
  7. The zip file should appear in the list as jar:file:/path/to/photran-master-4.0.5-something. Expand it.
  8. Expand "Photran (Eclipse Fortran Development Tools)" and check the box next to "Photran (Eclipse Fortran Development Tools) (Eclipse Technology Incubation)"
  9. If you have Intel Fortran installed on Linux or IBM XLF installed on Mac, then expand "Photran Compiler Support" and select the appropriate compiler as well.
  10. Click on the "Install..." button in the upper-right corner of the dialog box.

Additional Instructions for Windows Users

To compile and run Fortran programs in Photran, you will need to have a Fortran compiler and make utility installed. Most Linux/Unix distributions include these; [[4]] is commonly used (and free). Under Windows, you will need to

  1. Install Cygwin [5]; be sure to include the Development packages (in particular, gcc, make, and gfortran)
  2. Add the Cygwin directories to your Windows PATH. Under Windows XP, the process is as follows:
    1. Make sure you are logged in under an administrator account.
    2. Open the Control Panel.
    3. Double-click the System icon.
    4. Switch to the Advanced tab.
    5. Click the Environment Variables button.
    6. Under System Variables, find the variable "Path" in the list, and click on it.
    7. Click Edit.
    8. At the end of the "Variable Value" text, add
      ;C:\Cygwin\bin;C:\Cygwin\usr\bin;C:\Cygwin\usr\local\bin;C:\Cygwin\lib;C:\Cygwin\usr\lib
    9. Click OK, click OK, click OK, and close the Control Panel.
    10. Close and re-open Photran. Windows should now search C:\Cygwin\bin, C:\Cygwin\usr\bin, etc. when it's looking for executables (including make.exe, gcc.exe, and gfortran.exe).

Back to the top