Installing Phtran with Eclipse (MinGW r Cygwin) Phtran is an integrated develpment envirnment (IDE) and refactring tl fr Frtran. Phtran is a cmpnent f Eclipse, an pen-surce develpment platfrm fr building, deplying and managing sftware. Tgether, they prvide a free interface fr creating and cmpiling Frtran prjects. This dcument prvides instructins fr installing Phtran and Eclipse n the Micrsft Windws perating system. The sectins f this dcument include: Ntes: Installing Java Installing the cmpiler Updating the PATH system variable Installing Phtran and Eclipse Running Eclipse fr the first time Updating Phtran and Eclipse These steps were perfrmed n a 64-bit machine, althugh 32-bit versins f the sftware and cmpiler were used with the intent t cmpile a 32-bit binary f standalne MESH. An internet cnnectin is required t dwnlad and install the sftware and cmpiler. An accunt with administrative privileges is required t install the sftware and cmpiler. Installing Java Java is required t install Eclipse. Run the Windws Offline (32-bit) installatin file: Java Dwnlads fr All Operating Systems: http://java.cm/en/dwnlad/manual.jsp The installatin file has a *.cm extensin, but can still be run frm Internet Explrer. jre-7u51-windws-i586.cm (32-bit, apprx. 28MB) was the name f the installatin file fr Java Versin 7, Update 51 at the time f writing. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 1 f 14
Installing the cmpiler The GNU gfrtran cmpiler is used t cmpile Frtran prjects. Tw distributins f the cmpiler exist: MinGW and Cygwin; nly ONE f the tw distributins has t be installed. D nt install MinGW if yu intend t install Cygwin. Likewise, d nt install Cygwin if yu intend t install MinGW. T install MinGW: Run the MinGW Installatin Manager : MinGW Minimalist GNU fr Windws: http://surcefrge.net/prjects/mingw/files/installer/ mingw-get-setup.exe (32-bit, less than 1MB) was the name f the installatin file fr mingw-get versin 0.6.2-beta-20131004-1 at the time f writing. Click Install. Leave C:\MinGW as the Installatin Directry. Click Cntinue. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 2 f 14
The installatin will dwnlad a number f files. Click Cntinue after the prcess has cmpleted. The setup prgram will launch the MinGW Installatin Manager. Alternatively, launch the prgram frm the Desktp r Start menu. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 3 f 14
Select Basic Setup in the package list. Mark mingw32-base and mingw32-frtran fr installatin. Click the bx in the clumn next t the package name. Click Mark fr Installatin. Click Installatin in the windw menu. Click Apply Changes. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 4 f 14
Click Apply. The manager will dwnlad and extract files t the MinGW rt directry. This prcess will take a few mments. Click Clse after the prcess has cmpleted. Click Installatin in the windw menu. Click Quit t clse the installatin manager. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 5 f 14
D nt install Cygwin if MinGW was just installed. T install Cygwin: Run Cygwin Net Release Setup Prgram : Installing and Updating Cygwin Packages: http://cygwin.cm/install.html setup-x86.exe (32-bit, less than 1MB) was the name f the installatin file fr Setup.exe versin 2.844 (32 bit) at the time f writing. Click Next. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 6 f 14
Select Install frm Internet. Click Next. Leave C:\Cygwin as the Rt Directry. Click Next. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 7 f 14
The Lcal Package Directry is where temprary installatin files are stred. By default, the installatin will create a subdirectry within the directry cntaining the installatin file. Click Next. Select Direct Cnnectin. Click Next. Alternatively, select Use HTTP/FTP Prxy and enter additinal infrmatin if required. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 8 f 14
Select any ne f the dwnlad sites frm the Available Dwnlad Sites list. Click Next. The list f sites changes frm time t time; any ne f the sites suggested by the installatin can be used. The installatin will dwnlad a number f files. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 9 f 14
The installatin windw will maximize after dwnlading has cmpleted. A number f Cygwin packages are available t install. Expand the Devel branch. Mark the fllwing packages fr installatin: gcc-frtran, gbd and make. Additinal packages may have been selected by the installatin. Click n the line where it says Skip t mark the package fr installatin; nce marked, the line will shw a versin number instead f Skip. Click Next. The installatin will dwnlad and extract packages t the Cygwin rt directry. This prcess will take a few mments. Click Finish. Updating the PATH system variable Once installed, the rt directry f either MinGW r Cygwin must be added t the PATH system variable. This variable permits Eclipse t access the cmpiler and ther cmpnents included in the distributin. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 10 f 14
Search and click Edit the system envirnment variables in the Start menu, r: Frm Windws Explrer, pen Cntrl Panel. Click System and Security r Perfrmance and Maintenance. Click System. Click Advanced system settings t pen the System Prperties windw. Click the Advanced tab. Click Envirnment Variables. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 11 f 14
Select the Path variable in the System variables grup Click Edit. Append the rt directry f the apprpriate distributin t the Variable value. A semicln is used t separate individual directries. Fr MinGW: Fr Cygwin: Click OK t save and apply the change in each windw. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 12 f 14
Installing Phtran and Eclipse Once Java and either MinGW r Cygwin have been installed, Eclipse can be installed t the system. Eclipse is distributed as an archive. Dwnlad Eclipse fr Parallel Applicatin Develpers : Eclipse fr Parallel Applicatin Develpers: http://eclipse.rg/dwnlads/packages/eclipse-parallel-applicatin-develpers/keplersr1 This distributin f Eclipse includes Phtran. Alternatively, Phtran can als be installed t an existing cnfiguratin f Eclipse. See the Phtran 8.0 Installatin Guide fr mre infrmatin: http://wiki.eclipse.rg/ptp/phtran/dcumentatin/phtran8installatin. eclipse-parallel-kepler-sr1-win32.zip (32-bit, apprx.. 212MB) was used at the time f writing. Extract the archive t a directry (e.g., C:\Eclipse ). Running Eclipse fr the first time Eclipse des nt autmatically add shrtcuts t yur Start menu, Desktp r Taskbar. Yu may wish t create a shrtcut t the executable, which can be cpied t the Desktp fr future reference. Right-click n eclipse.exe. T run Eclipse: Click Create shrtcut. Duble-click eclipse.exe. While the Eclipse splash screen is displayed, the Wrkspace Launcher windw will pen. The wrkspace acts as a centralized lcatin where future prjects can be saved. By default, a subdirectry in the User directry is recmmended. Check Use this as the default and d nt ask again. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 13 f 14
Eclipse will lad. Once the Eclipse IDE has pened, the Welcme page is shwn. Click the X in the Welcme tab t clse the page. The default C/C++ perspective will lad. A perspective is a pre-assembled arrangement f cmmn windws and panes that are typically suited t a particular develpment envirnment. Click Windw in the windw menu. Click Open Perspective. Click Other. A new windw will pen. Select Frtran in the list. Click OK. The Frtran perspective will lad. Updating Phtran and Eclipse The debug ptin was temprarily remved in Phtran 8, and may have been mitted in the nline installatin distributin. Update the sftware t re-enable the debug ptin. Click Help in the windw menu. Click Check fr Updates. Phtran 8.0.4.201302122310 was used at the time f writing. Installing Phtran with Eclipse (MinGW r Cygwin)-May 10, 2017 14 f 14