Cant install AFNI - "suma: Command not found."

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?

Dear all,

I managed to solve the problem. I reinstalled everything again (two times). It somehow works now. However, please let me know if the adjustment of the code that is written for tcsh and bash in my first post can be adapted to zsh. Thank you.

Philipp

If you are using @update.afni.binaries, that has probably been written to your .zshrc file already.
We might even take those instructions out, since they are mostly just educational at this point.

  • rick

Hi Rick,

I just checked my .zshrc file. Yes, you are right, the file is accordingly updated by AFNI too. Great. See/read you around.

Philipp