Using Free PGI and Xcode Free PGI relies on several Xcode components such as system header files, assembler, linker, and system libraries. For this reason, you must install Xcode and the Xcode command line tools before installing Free PGI. Following are the steps required for installing Xcode and the Xcode command line tools for different Xcode and/or OS X versions. 1. Installing Xcode First check to see if you have Xcode installed. In Terminal, run the xcode- select command. If Xcode is installed, you ll see a path to your Xcode. If you see an error message, then Xcode is not installed on your system. If you see either of the following messages, then you have Xcode installed. myosx% xcode- select - - print- path /Applications/Xcode.app/Contents/Developer OR myosx% xcode- select - - print- path /Developer If you don t have Xcode installed, the latest version is available from the App Store. The current version, Xcode 5, requires OS X 10.8.4 or newer. Xcode 5 may attempt to install on older versions of OS X but will hang as evidenced by the continuously spinning busy ( beach ball ) cursor. If this happens, force quit the installer and download the compatible version of the Xcode for your version of OS X from the Apple Developer website at https://developer.apple.com/xcode/. To access and download Xcode, you ll need to create an Apple developer account if you don t have one currently (available at no charge). In addition, be sure to consult the Free PGI minimum system requirements first for a list of compatible versions of Xcode and OS X. 2. Xcode Set- up To use Xcode, you must first assent to Apple s license agreement. Two options are available for doing this: a. In Terminal, enter the following command: sudo xcodebuild license. b. Open Xcode (in the Applications folder) and then follow the directions below. With this method, after assenting to the license, Xcode may prompt you to install some additional components. Install those components as recommended. Early versions of Xcode are normally installed in a new Developer folder located at the top level of your system hard disk.
For Xcode 3.x: Select the Go to Folder option from the Finder s Go menu. In a pop- up window, enter /Developer and click Go Once in the Developer folder, open the Applications folder and then open Xcode.
For Xcode 4.x or newer: Newer versions of Xcode are normally installed in the Applications folder. Select the Applications option from the Finder s Go menu and then open Xcode. 3. Installing the Xcode Command Line Tools Over time, Apple has used different methods for installing the command line tools. Before starting, first determine which version of Xcode you have. Again, two methods are available. a. In Terminal enter the following command: myosx% xcodebuild version You should then see something like this: Xcode 4.6.3 Build version 4H1503 Here you can see Xcode version 4.6.3 listed. b. Select About Xcode from the Xcode menu from within Xcode. Here again you can see Xcode version 4.6.3 listed.
Xcode 3.2.x 4.2.x No extra installation is required. The command line tools are automatically installed with these versions of Xcode. Xcode 4.3.x 5 on OS X 10.8 or earlier From within Xcode, select the Preferences option from the Xcode menu. Select the Downloads icon in the tool bar and then click on the downward pointing arrow to the right of the Command Line Tools components to start installation. Earlier versions of Xcode have an install button instead of an arrow.
Xcode 5 on OS X 10.9 Mavericks or newer Two methods are available: a. In Terminal enter the command xcode- select - - install This will pop up a window. Click the Install button to install the command line tools. a. The other method, which can be used with any version of Xcode, is to download the Command Line Tools from Apple s developer website at https://developer.apple.com/xcode/. As mentioned above, you ll need to create a developer account if you don t have one currently (it s free). You are now ready to install Free PGI on OS X by copying Free PGI to your Applications folder. View the Free PGI documentation online at www.pgroup.com/products/freepgi/.