I realize that, most probably, I’m asking a dumb question. but after several hours of tries I could not resolve it.
I’m interested in PGI for profiling my OpenMP app, so I’ve d/loaded it and followed by install instructions. I set up LM_LICENSE_FILE in Terminal via
and when I type
it shows the entered path. However, pgiprof and other tools don’t see this path (same as any other) and always report “no such file” ./license.dat
Also when I re-open Terminal, the $LM_LICENSE_FILE is empty
Thx for your help. Yes, I tried many times. I can use “export” in bash same as “setenv” in tcsh. However, the set variables are not saved and disappear when I close Terminal. It looks like they are “local” for this Terminal session only :-(
You now need to add those commands to the rc files for your shell. If you use bash (which I believe is the shell for OS X), add your exports to ~/.bashrc. So within ~/.bashrc you need to add the lines: