PGI installation (export not found)

Hi,

I successfully installed the PGI community edition 17.10 in Ubuntu 16.04 and after that, i successfully ran the “pgcc -V” command to confirm the installation of the PGI compiler.

Next, i restarted the terminal and got the error “pgcc not found” and realized that i had to add the following commands in the end of my bash.bashrc file and re-logged in ;

$ export PGI=/â� opt/â� pgi;
$ export PATH=/â� opt/â� pgi/â� linux86-â� 64/â� 17.10/â� bin:$PATH;
$ export MANPATH=$MANPATH:/â� opt/â� pgi/â� linux86-â� 64/â� 17.10/â� man;
$ export LM_LICENSE_FILE=$LM_LICENSE_FILE:/â� opt/â� pgi/â� license.dat

but i receive the following message when i restart the terminal

$: command not found
$: command not found
$: command not found
$: command not found
cbechstein@foulis:~$

I have confirmed that the directories and the files used in export command really exist.
I have checked my shell type and it’s bash.
I tried to run these exports as superuser and i received the same error messages.

I have looked for a solution on the Net and tried to understand how export works but i couldn’t find a solution .

Thanks in advance,
-Christos

P.S I am new to Linux.

Dear newbies,

The solution to this problem is so simple and i am replying to myself instead of deleting this post in order to save you precious time.

Remove the “$” from the exports so the commands in your bash.bashrc file look like this;

export PGI=/â� opt/â� pgi;
export PATH=/â� opt/â� pgi/â� linux86-â� 64/â� 17.10/â� bin:$PATH;
export MANPATH=$MANPATH:/â� opt/â� pgi/â� linux86-â� 64/â� 17.10/â� man;
export LM_LICENSE_FILE=$LM_LICENSE_FILE:/â� opt/â� pgi/â� license.dat ;

-Christos