Upgrade from RHEL5 to RHEL6 kills previous versions of PGI

Recently, my GPU development box was upgraded from RHEL5 to RHEL6. After that upgrade, my admins installed PGI 12.9 and it seems to work. Well, until I found a bug in 12.9 (I think), so I tried to downgrade to 12.8 by running -V12.8 to see if it worked there:

(155) > pgfortran -V12.8
pgfortran-Error-Please run makelocalrc to complete your installation

My admin said he wasn’t sure he ever ran this command (maybe the install does it silently?), so how exactly does one run this to “refresh” 12.8?


Answering myself, apparently all that’s needed is a ‘makelocalrc -x’. Took a couple times to figure out the ‘-x’ was needed, but that seemed to do it!