FortranLint for UNIX, command-line installation instructions ---------------------------------------------------------------------- These are the installation instructions for UNIX command-line versions of FortranLint. ---------------------------------------------------------------------- 1. Download the appropriate tarball: * If you have a recent PC Linux distribution (such as Red Hat 7 or Slackware 8), get "flint_linux.tar.gz". * If you have an old libc5-based PC Linux distribution (such as Red Hat 4 or Slackware 3), get "flint_oldlin.tar.gz". * If you have AIX - get: flint_aix.tar.Z * If you have HPUX - get: flint_hpux.tar.Z * If you have IRIX - get: flint_irix.tar.Z * If you have Solaris - get: flint_solaris.tar.Z * If you have Tru64 - get: flint_tru64.tar.Z Note: If you use FTP, remember to set "binary" mode. After downloading the appropriate tarball, move it to the "/tmp" dir- ectory on the target system. ---------------------------------------------------------------------- 2. Log-in as "root" on the target system. Note: "root" privileges are recommended, but are not required. ---------------------------------------------------------------------- 3. Create a directory to hold FortranLint. For example: mkdir -p /usr/local/cleanscape/flint # For most systems or mkdir -p /opt/cleanscape/flint # For Solaris ---------------------------------------------------------------------- 4. Go to the new directory. Unpack the tarball using a command similar to the following: For Linux systems: tar zxvf /tmp/flint_NAME.taz For other UNIX systems: gunzip /tmp/flint_NAME.taz tar xvf /tmp/flint_NAME.tar ---------------------------------------------------------------------- 5. Set environment variables. Edit your "login" scripts (and the "login" scripts for any other users who will be running FortranLint). Add commands similar to the follow- ing: For "sh" users -------------------------------------------- FLINTHOME=/usr/local/cleanscape/flint FLINTHOST=localhost export FLINTHOME export FLINTHOST PATH=$FLINTHOME:$PATH For "csh" users -------------------------------------------- setenv FLINTHOME /usr/local/cleanscape/flint setenv FLINTHOST localhost set path = ( $FLINTHOME $path ) rehash Note: "FLINTHOME" should specify the program directory created in step 3. Modify the setting shown here as necessary. After making the changes, log out, then log-in again. ---------------------------------------------------------------------- 6. Install license keys. Execute the following command: flint activate This should print a server code. Copy the code, then press Control-C to abort "flint". Call Cleanscape at (800) 944-5468 and ask for a FortranLint activation key. Alternatively, mail the server code to "support@cleanscape.net", along with your name, company name, and telephone number. Mention "FortranLint" in your message. Cleanscape will generate an activation key for you. Note: Activation keys are provided for evaluation purposes at no cost. When you receive the activation key, run "flint activate" again and enter the key. This should create a script named "startup" in the "FLINTHOME" directory. Note: You may receive two activation keys. If so, run "flint activate" twice (once for each key). ---------------------------------------------------------------------- 7. Install license manager daemon. The "startup" script starts a license manager daemon. To install the daemon: (a) Make the "startup" script executable. For example: chmod a+x /usr/local/cleanscape/flint/startup (b) If you have "root" access, edit the appropriate system startup script, add a line similar to the following, and reboot the system: /usr/local/cleanscape/flint/startup & (c) If you don't have "root" access, execute the script man- ually. ---------------------------------------------------------------------- 8. Set up XLINT (optional). FortranLint comes with a database browser named XLINT. If you plan to use XLINT, set two additional environment variables "XAPPLRESDIR" and "XLINTHOME" as follows: "sh" example "csh" example ---------------------- ----------------------------- XAPPLRESDIR=$FLINTHOME setenv XAPPLRESDIR $FLINTHOME XLINTHOME=$FLINTHOME setenv XLINTHOME $FLINTHOME export XAPPLRESDIR export XLINTHOME You may also need to set the standard UNIX "DISPLAY" variable. For more information on XLINT, see chapters 11 through 16 of the main FortranLint manual (located in the "Doc" subdirectory of the main pro- gram directory). Note: Presently, XLINT assumes that the display is set to a resolution of at least 1024x768. ---------------------------------------------------------------------- 9. Install "man" page (optional): To install the UNIX FortranLint "man" page, use commands similar to the following: cd $FLINTHOME mkdir -p /usr/local/man/man1 cp -p flint.1 /usr/local/man/man1 Modify the directory path shown here as necessary. ---------------------------------------------------------------------- The command-line version of FortranLint should now be installed and ready for use. For more information, see the main FortranLint manual. The manual is located in the "Doc" subdirectory of the main program directory (created in step 3). Both text and PDF versions are provid- ed.