Sunteți pe pagina 1din 6

PTP/photran/documentation/photran7installation - Eclips...

http://wiki.eclipse.org/PT P/photran/documentation/photra...

PTP/photran/documentation/photran7installation
From Eclipsepedia
< PTP | photran | documentation You are here: PTP > Photran > Documentation > Photran 7.0 Installation Guide

Photran 7.0 Installation Guide


Contents
1 System Requirements 2 Overview 3 Option 1: Installing the Eclipse IDE for Parallel Application Developers 4 Option 2: Installing Photran into an Existing Eclipse Installation 4.1 Requirements 4.2 Installing on a Machine With Internet Access 4.3 Installing on a Machine Without Internet Access 4.4 Troubleshooting 5 Additional Instructions for Window s Users 5.1 Instructions for Cygw in 6 Additional Instructions for Mac OS X Users

System Requirements
To install Photran 7.0... 1. You must have a Java 1.5 or later Java Virtual Machine (JVM). To get reasonable performance, w e recommend Sun's JVM [1] (http://java.com/en/dow nload/manual.jsp) or IBM's J9 [2] (http://w iki.eclipse.org/index.php/J9) . OpenJDK (the default JVM on new er versions Fedora Linux) also w orks w ell, although GNU Classpath (the default JVM on older versions of Fedora) is generally too slow to be useful. 2. If you w ant to compile and build Fortran applications, you must have a m ake program (such as GNU Make) and a Fortran com piler (such as gfortran, the GNU Fortran compiler) in your system path. To debug Fortran applications, you must have GNU GDB installed. Many Linux/Unix systems include these; details on installing them in Window s and Mac are below .

Overview
There are tw o w ays to get Photran.

1 de 6

21-07-2011 15:04

PTP/photran/documentation/photran7installation - Eclips...

http://wiki.eclipse.org/PT P/photran/documentation/photra...

(Option 1) The easiest way is to install the Eclipse IDE for Parallel Application Developers. This includes Photran, as w ell as the C/C++ Development Tools, the Eclipse Parallel Tools Platform, and several other plug-ins. (Option 2) Alternatively, you can install Eclipse 3.7 (Indigo) and manually add Photran to your installation. This is how Photran w as installed in prior releases.

Option 1: Installing the Eclipse IDE for Parallel Application Developers


The easiest w ay to get Photran is to install the Eclipse IDE for Parallel Application Developers (http://w w w .eclipse.org/dow nloads/packages/eclipse-ide-parallel-application-developers-includesincubating-components/indigor) . This includes Photran, as w ell as the C/C++ Development Tools, the Eclipse Parallel Tools Platform, and several other plug-ins.

Option 2: Installing Photran into an Existing Eclipse Installation


Requirements
To install Photran 7.0 into an existing Eclipse installation, you m ust be running Eclipse 3.7 (Indigo). Photran 7.0 w ill not install correctly into earlier versions of Eclipse. 1. You should have the C/C++ Developm ent Tools (CDT) 8.0 installed. If you do not... 1. If you dow nloaded Eclipse from eclipse.org and you w ill be follow ing the instructions below for "Installing on a Machine With Internet Access," then CDT should be installed automatically w hen you install Photran. 2. Otherw ise, CDT probably will not be installed automatically (this is also true if you installed Eclipse from a Linux distribution like Ubuntu). You w ill need to install CDT manually. Follow the instructions below for "Installing on a Machine Without Internet Access."

Installing on a Machine With Internet Access


To install Photran, start Eclipse, then... 1. Click on Help > Install New Softw are... 2. Click on the "Available Softw are Sites" hyperlink 3. Look for http://dow nload.eclipse.org/tools/ptp/updates/indigo in the list. 1. If it is in the list, check the box next to it (if it is not already checked). 2. If it is not in the list... 1. Click on the "Add..." button 2. In the Location field, type http://dow nload.eclipse.org/tools/ptp/updates/indigo 3. Click OK to close the Add Site dialog. This w ill return you to the Install dialog. 4. Click OK to close the Preferences dialog (i.e., the list of available softw are sites). This w ill return you to the Install dialog. 5. In the "Work w ith:" dropdow n, choose http://dow nload.eclipse.org/tools/ptp/updates/indigo 6. Expand "Fortran Development Tools (Photran)" and check the box next to "Photran End-User
2 de 6 21-07-2011 15:04

PTP/photran/documentation/photran7installation - Eclips...

http://wiki.eclipse.org/PT P/photran/documentation/photra...

7.

8. 9. 10.

Runtime" If you are running Linux and have the Intel Fortran Compiler installed, or if you are on a Macintosh and have the IBM XL Fortran compiler installed, expand "Fortran Compiler Support" and select the appropriate compiler. Note that you cannot install Intel Fortran compiler support unless you are running Linux! Click on the "Next" button If you get an error message, see below for troubleshooting information. Click the Finish button and agree to the license to complete the installation.

Installing on a Machine Without Internet Access


You w ill the follow ing files: 1. If you do not have CDT installed, you w ill need to dow nload the latest 8.0.x "CDT master update archive" from http://dow nload.eclipse.org/tools/cdt/releases/indigo/). This should be a file named cdt-m aster-8.0.x.zip (for some value of x) 2. To install Photran, you w ill need the latest PTP update site archive from http://w iki.eclipse.org /PTP/builds/5.0.0). This should be a file named ptp-m aster-5.0.0-I2011xxxxxxxx.zip If you do not have CDT installed, start Eclipse, then... 1. 2. 3. 4. 5. 6. 7. 8. 9. Click on Help > Install New Softw are... Click on the "Add..." button Click on the "Archive..." button Point it to the file cdt-master-8.0.x.zip Click OK to close the Add Site dialog. This w ill return you to the Install dialog. Expand "CDT Main Features" and check the box next to "Eclipse C/C++ Development Tools" Click on the "Next" button Click the Finish button and agree to the license to complete the installation. After CDT is installed, you w ill be asked to restart Eclipse. You may then proceed to install Photran.

To install Photran, start Eclipse, then... 1. 2. 3. 4. 5. 6. 7. Click on Help > Install New Softw are... Click on the "Add..." button Click on the "Archive..." button Point it to the file ptp-master-5.0.0-I2011xxxxxxxx.zip Click OK to close the Add Site dialog. This w ill return you to the Install dialog. Expand "Fortran Development Tools (Photran)" and check the boxes next to "Photran End-User Runtime" and "Rephraser Engine End-User Runtime" (the latter is a supporting component) If you are running Linux and have the Intel Fortran Compiler installed, or if you are on a Macintosh and have the IBM XL Fortran compiler installed, expand "Fortran Compiler Support" and select the appropriate compiler. Note that you cannot install Intel Fortran compiler support unless you are running Linux! Click on the "Next" button If you get an error message, see below for troubleshooting information. Click the Finish button and agree to the license to complete the installation.

8. 9. 10.

3 de 6

21-07-2011 15:04

PTP/photran/documentation/photran7installation - Eclips...

http://wiki.eclipse.org/PT P/photran/documentation/photra...

Troubleshooting
Eclipse's installer gives notoriously cryptic error messages, w hich, unfortunately, are out of Photran's control. Some of the more common ones are below . If you run into a different error message and cannot resolve it, please ask for help on the Photran mailing list (http://w w w .eclipse.org/photran/mailinglists.php) .

Problem : You receive the follow ing error message during installation. Cannot complete the install because one or more required items could not be found. Missing requirement: 125xxxxxxxxxx 0.0.0.125xxxxxxxxxx requires 'org.eclipse.photran.intel.feature.group [7.0.0.xxxx]' but it could not be found Solution: You are attempting to install support for the Intel Fortran compiler, but you are not running Linux. Go back in the installation w izard, and uncheck "Linux Intel(R) Fortran Compiler Support."

Problem : You receive the follow ing error message during installation. Cannot complete the install because one or more required items could not be found. Softw are being installed: Photran End-User Runtime 7.0.x.xxxxxxxxxxxx (org.eclipse.photran.feature.group 7.0.x.xxxxxxxxxxxx) Missing requirement: Photran VPG CDT Interface Plug-in 7.0.x.xxxxxxxxxxxx (org.eclipse.photran.cdtinterface.vpg 7.0.x.xxxxxxxxxxxx) requires 'bundle org.eclipse.cdt.core 0.0.0' but it could not be found Cannot satisfy dependency: From: Photran End-User Runtime 7.0.x.xxxxxxxxxxxx (org.eclipse.photran.feature.group 7.0.x.xxxxxxxxxxxx) To: org.eclipse.photran.cdtinterface.vpg [7.0.x.xxxxxxxxxxxx] Solution: You do not have CDT 8.0 installed, and it couldn't be dow nloaded and installed automatically. Try installing CDT 8.0 first, then retry installing Photran.

Additional Instructions for Windows Users


To compile and run Fortran programs in Photran, you w ill need to have a Fortran compiler and make utility installed. gfortran (http://gcc.gnu.org/fortran/) and GNU Make (http://w w w .gnu.org/make) are commonly used (and free). Most Linux/Unix distributions include these. Under Window s, you w ill need to install Cygw in [3] (http://w w w .cygw in.com/) (w hich optionally includes gfortran and GNU Make) or MinGW [4] (http://w w w .mingw .org/) and put them on your Window s PATH.

Instructions for Cygwin


1. Install Cygw in (http://w w w .cygw in.com/) ; the defaults are mostly OK, but you w ill need to explicitly tell it to include the "Devel" packages (at least gcc4-fortran, gdb, and make) w hen the installer asks you to select w hat packages to install. (If gcc4-fortran is not listed under the "Devel" packages, you may have chosen a bad mirror; restart the Cygw in installation, and choose a
4 de 6 21-07-2011 15:04

PTP/photran/documentation/photran7installation - Eclips...

http://wiki.eclipse.org/PT P/photran/documentation/photra...

different mirror instead. Georgia Tech's mirror at gtlib.gatech.edu is generally quite fast and reliable, for example.) 2. Add the Cygw in directories to your Window s PATH. Under Window s XP, the process is as follow s: 1. Make sure you are logged in under an administrator account. 2. Open the Control Panel. 3. Double-click the System icon. 4. Sw itch 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. Window s should now search C:\Cygw in\bin, C:\Cygw in\usr\bin, etc. w hen it's looking for executables (including make.exe, gcc.exe, and gfortran.exe).

Additional Instructions for Mac OS X Users


If you install gfortran on Mac OS X, it may be installed in /usr/local/bin, w hich is not (by default) on the PATH. If you are launching Eclipse from a Terminal, the PATH can be set by modifying /etc/paths. How ever, if you are launching Eclipse from the Finder (by double clicking on it) or the Dock, then the PATH is not obtained from the shell or /etc/paths. Instead, it's obtained from ~/.MacOSX/environment.plist. The format of the environment.plist file is as follow s (change the path appropriately). If you create or edit this file, you will need to log out (or reboot) before the changes will take effect.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1 <plist version="1.0"> <dict> <key>PATH</key> <string>/usr/local/mpi/bin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/sbin:/usr/sbin:/Developer/ </dict> </plist>

Retrieved from "http://w iki.eclipse.org/PTP/photran/documentation/photran7installation"

Home Privacy Policy Terms of Use Copyright Agent Contact About Eclipsepedia Copyright 2011 The Eclipse Foundation. All Rights Reserved This page was last modified 14:03, 22 June 2011 by Jeffrey Overbey.
5 de 6 21-07-2011 15:04

PTP/photran/documentation/photran7installation - Eclips...

http://wiki.eclipse.org/PT P/photran/documentation/photra...

This page has been accessed 2,158 times.

6 de 6

21-07-2011 15:04

S-ar putea să vă placă și