Dear all,
after already reinstalling AFNI a couple of times on my old laptop (due to some bug fixing problems back then) I thought that I would easily handle the installation of AFNI on my new laptop, since I know it by heart. Well, a new laptop led to new problems.
It is a 2021 MacBook with the current MacOS 12.0.1 Monterey. I use the Zsh shell, but I face the following problem with using the tcsh and bash shells for the installation as well. In the following step of AFNI’s installation guide:
Set default AFNI+SUMA environment variables
Copy+paste:
cp $HOME/abin/AFNI.afnirc $HOME/.afnirc
suma -update_env
I receive “suma: Command not found.” as output. I cannot start AFNI now. Homebrew, Xcode, etc. are all installed. afni_system_check.py -check_all also does not work. Well, AFNI is not properly installed/set up, so the terminal tells me that it does not know these commands. I would be very happy if you could give me an idea or tips. Meanwhile I will try to solve the problem on my own (lets see how far I can reach). Thank you.
Philipp
A second more general question. Take a look at the following code that is part of the installation process.
touch ~/.cshrc
echo ‘if ( $?DYLD_LIBRARY_PATH ) then’ >> ~/.cshrc
echo ’ setenv DYLD_LIBRARY_PATH ${DYLD_LIBRARY_PATH}:/opt/X11/lib/flat_namespace’ >> ~/.cshrc
echo ‘else’ >> ~/.cshrc
echo ’ setenv DYLD_LIBRARY_PATH /opt/X11/lib/flat_namespace’ >> ~/.cshrc
echo ‘endif’ >> ~/.cshrc
touch ~/.bashrc
echo ‘export DYLD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/opt/X11/lib/flat_namespace’ >> ~/.bashrc
In order to align/adapt this code to zsh, would it be appropriate to exchange the “cshrc” lines to “zshrc” while skipping the last “bash” part?