pgcc: LICENSE MANAGER PROBLEM: Cannot find license file.

Hello: Is my first time using this tool, I just installed and I tried

opt/pgi/linux86-64/2016/bin> ./pgc

which I think is the C compiler I got this error

pgcc: LICENSE MANAGER PROBLEM: Cannot find license file.
The license files (or license server system network addresses) attempted are
listed below. Use LM_LICENSE_FILE to use a different license file,
or contact your software provider for a license file.
Feature: pgcc
Filename: ./license.dat
License path: ./license.dat:
FlexNet Licensing error:-1,359. System Error: 2 “No such file or directory”
For further information, refer to the FlexNet Licensing documentation,
available at “”.

If you have not purchased a license PIN, perhaps you are using the
Community Edition of 16.10, found at .

If you installed that properly, the community license should be in place
in $PGI/license.dat. Make sure $PGI/license.dat is world readable.

It looks like you did not set up your environment correctly.

Stop the license service, if you started it before using
ps ax | grep lmgrd
kill any process detected, other than ‘grep lmgrd’
Don’t start it again.

export PGI=/opt/pgi
export PGROUPD_LICENSE_FILE=$PGI/license.dat
export PATH=$PGI/linux86-64/16.10/bin:$PATH

and try the compilers now.