![]() |
Tutorial | |
|
The SuperDARN Toolkit on MacOS X![]() Click on the image for a larger view OverviewThis tutorial shows you how to install the SuperDARN Toolkit on MacOS X. Although MacOS X is a UNIX based Operating System, it has a number of subtle differences that complicate the installation process. This tutorial assumes that you are installing on MacOS X 10.3 (Panther). When you have completed the installation, you will have a fully functioning SuperDARN Data Analysis toolkit. Preparing MacOS XInstalling X11 for MacOS XThe first step is to install the X11 for MacOS X, this can be found either on the Operating System installation disks or on the Apple web site here. The X11 software is required by both the SuperDARN software toolkit and by IDL. The next step is to install the MacOS X software developement tools, called Xcode. This software includes the gcc compiler and gnumake programs that are needed to compile the code. They can be obtained from Apple by registering as an Apple developer, here. When you install the development tools, make sure you include the package for X11 development. Installing IDL 6.xIf you intend to use the software toolkit from IDL, you must install IDL on your machine. The code has been tested against IDL 6.0 and IDL 6.1. The default installation directory has been changed for IDL 6.1, IDL is now installed under the CDF SoftwareIf you intend to work with data from NSSDC you will need to install the Common Data Format software distribution from here. They have a self-installing archive and full instructions on how to install the software. Other SoftwareOne of the most useful software packages comes from the Fink project. This is a package management system for installing a variety of Open Source UNIX software on MacOS X. Packages are included for emacs21, netpbm, and netcdf, as well as a host of other software. You can download Fink from here. Installing the ToolkitInstalling the Core SoftareFirst you must download the core rst software from the SuperDARN web-site and copy it to your home directory. The software is stored in the form of a self-extracting archive that you can install by typing:
This should compile the core software and install it in your home directory. Updating the User Profile for the Core SoftwareThe next step is to modify your default profile, to include the necessary environment variables for compiling code. By default, MacOS X 10.3 uses the
Older versions of MacOS X used the
The next step is to incorporate the environment variables defined in the file
If you are running
Next you must refresh you profile. If you are a running
If you are running
Alternatively, you can update the profile by closing the terminal window and opening a new one. Installing the Toolkit packageThe next step is to install the SuperDARN Toolkit package by typing:
This should unpack the source code, data tables, scripts, and headers and place them in the correct directories. It should also place to files containing the environment variables for the toolkit in your home directory. Adjusting the Environment VariablesYou will need to make a few changes to these variables to deal with the differences between MacOS X and other versions of UNIX.If you are running Look through the file for the section entitled "Compilation Directives". X11If you have installed the X11 development libraries and wish to use them, change the environment variable netcdfIf you have installed the netcdf software and wish to use it, uncomment the environment variable CDFIf you have installed the CDF software and wish to use it, change the environment variable IDLThe next change is to modify the environment variable If you have installed IDL 6.1, then this directory is most likely to be If you have installed IDL 6.0, then the directory is most likely to be You must next make some changes to the IDL runtime environment, look through the file for the section entitled "IDL Configuration" The environment variable MacOS X differs from other versions of UNIX in that the suffix applied to shared libraries (referred to as dynamic libraries) is Legacy Environment VariablesThe final two enviroment variables that may need to be changed are Once you have completed modifying the profile, save it to disk. Updating the User Profile for the SuperDARN ToolkitThe next step is to incorporate the environment variables defined in the file
If you are running
Next you must refresh your profile again. If you are a running
If you are running
Alternatively, you can update the profile by closing the terminal window and opening a new one. Compiling the SuperDARN ToolkitThe final step of the installation process is to compile the toolkit by typing the following:
If everything is configured correctly, this should compile all of the libraries and binaries in the toolkit.
|