Hi Yang,
Your $path is very long, and has many repeated directories in it.
Since the repeated directories seem to be for freesurfer, I'm not
sure what to say about it, except that you may want to try things
without "source $FREESURFER_HOME/FreeSurferEnv.csh" in
your .cshrc file. It might be better to make an alias for that, so it
doesn't happen automatically.
Note that "which afni" returns /usr/local/bin/afni, which is not what
you want. Basically, /usr/local/AFNI/bin/linux_glibc22/afni does
not seem to be in your path anymore, which is odd (since it's in
your .cshrc file). All I can guess is that it's related to the freesurfer
stuff. So again, it might be good not to automagically source that
FreeSurferEnv.csh file.
Another place you will have trouble is you have an old copy of
afni under /usr/local/bin. Since that is not where you are putting
the new versions, you should remove all AFNI programs from that
directory. As root, you could backup /usr/local/bin, just to be safe,
and then remove the AFNI programs from it, by:
cd /usr/local/AFNI/bin/linux_glibc22
foreach file (*)
if ( -d $file ) continue
if ( -f /usr/local/bin/$file ) then
echo removing $file
rm /usr/local/bin/$file
endif
end
Unfortunately, given the way window managers now seem to operate
under a parent shell of yours, you may have to actually log out and
log back in, to get the benefits of these changes.
- rick