cannot find license file error while trying to compile MM5

Hi. I am trying to rebuild a linux RH9 workstation (2 x 2 ghz athlon processors) from scratch after the HD with the OS crashed.

So far did the following: downloaded and installed PGI Workstation version 5.0-2 (the one I’d paid for) at the default location. Had to log in as root and create a write-able directory /usr/pgi for the installation to proceed.

Added the following lines to my .bashrc file:

PATH=/usr/pgi/linux86/5.0/bin:$PATH
export PATH
MANPATH=$/MANPATH:/usr/pgi/linux86/5.0/man
export MANPATH


Then tried the tests in step 6 of the installation guide.

First sign of SUSPICIOUS BEHAVIOR:

The tests worked fine for pgf90, pghpf and pgCC. For example:

pgf90 5.0-2
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2003, STMicroelectronics, Inc. All Rights Reserved.
PGF90/any Linux/x86 5.0-2
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2003, STMicroelectronics, Inc. All Rights Reserved.
PGF90-F-0002-Unable to open source input file: x.f
PGF90/any Linux/x86 5.0-2: compilation aborted

BUT for pgf77 and pgcc I get error messages. For example.

pgf77 5.0-2
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2003, STMicroelectronics, Inc. All Rights Reserved.
pgf77-linux86: LICENSE MANAGER PROBLEM: Cannot find license file (-1,359:2 “No such file or directory”)
[arnico@Manang arnico]$


Going on to MM5V3/TERRAIN and trying to compile it, I get a similar license manage problem. For example here’s an excerpt from the make log:

pgf90 -c -I. -byteswapio data_area.f
pgf90-linux86: LICENSE MANAGER PROBLEM: Cannot find license file (-1,359:2 “No such file or directory”)
make[1]: [data_area.o] Error 2 (ignored)
/bin/rm -f data_area.f
/bin/rm -f data_area.exe
pgf90 -o data_area.exe latlon.o llxy.o mxmnll.o nestll.o rflp.o setup.o outpt.o vtran.o search.o data30s.o data_area.o -L/lib -L/usr/X11R6/lib -lncarg -lncarg_gks -lncarg_c -lX11 -L/linux86/lib -L/usr/lib -lf2c
/usr/bin/ld: cannot open latlon.o: No such file or directory
make[1]: [data_area.exe] Error 2 (ignored)
/bin/rm -f cr30sdata.o
cut -c1-72 cr30sdata.F | /lib/cpp -I. -C -traditional -DNCARG -DRECLENBYTE -DSGI > cr30sdata.f
pgf90 -c -I. -byteswapio cr30sdata.f
pgf90-linux86: LICENSE MANAGER PROBLEM: Cannot find license file (-1,359:2 “No such file or directory”)
make[1]: [cr30sdata.o] Error 2 (ignored)

the same error message keeps repeating.

So what am I missing?

I’d appreciate any help.

Thanks a lot.

Arnico.

arnico (at) mit (dot) edu

Hi Arnico,


You most likely need to set the environment variable LM_LICENSE_FILE to the location of your license file. It’s typically located at the root of your PGI directory.

Example: export LM_LICENSE_FILE=/usr/pgi/license.dat

Hope this helps,
Mat