It depends on what shell you use. If you use bash ( most distro's )
try 'export CC=gcc'
Basically 'export variable=value'. This differ's from regular bourne shell where you have to separate the export command, eg 'CC=gcc ; export CC' And C shell, tcsh, you can get away with 'setenv CC="gcc"'
You need to add the export line in your .profile only if you want that variable to be set whenever you log into the computer.
|