Issues Installing AFNI on MacBook Pro M1 Chip

Hello! I am having issues with the last step of the AFNI installation process. After restarting my Mac, I pasted the user-level install script. Then, I installed and it shows the following:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5083 100 5083 0 0 31171 0 --:--:-- --:--:-- --:--:-- 31376
set os = uname -s
uname -s
if ( 0 ) then
if ( Darwin != Darwin ) then
set cpu = uname -m
uname -m
if ( 0 ) then
set rver = R --version | head -n 1 | cut -d ' ' -f 3
R --version
cut -d -f 3
head -n 1
if ( 0 ) then
echo OS : Darwin
OS : Darwin
echo CPU : arm64
CPU : arm64
echo R ver : 4.3.1
R ver : 4.3.1
echo

defaults write org.macosforge.xquartz.X11 wm_ffm -bool true
defaults write org.x.X11 wm_ffm -bool true
defaults write com.apple.Terminal FocusFollowsMouse -string YES
if ( ! -f /Users/norvinwestjr/abin/init_user_dotfiles.py ) then
echo -- skipping install of AFNI anyos_text_atlas
-- skipping install of AFNI anyos_text_atlas
endif
echo ++ setting up user dotfiles
++ setting up user dotfiles
/Users/norvinwestjr/abin/init_user_dotfiles.py -shell_list bash zsh tcsh -do_updates path apsearch -dir_bin /Users/norvinwestjr/abin
-- no .cshrc, will create one as a follower of .tcshrc
-- considered operations: path, apsearch

-- note: followers should not need edits, so edit flags should be 0
(have 1 follower(s), which can be ignored)

dot file mods : want 4 modifications across 4 files:

file path flatdir apsearch follower


.bashrc 0 0 0 0
.zshrc 1 0 1 0
.cshrc 0 0 0 1
.tcshrc 1 0 1 0

-- backing up .zshrc to .zshrc.adot.bak
** failed to open text file '.zshrc' for writing
** error: failed to append shell text to file .zshrc

It looks like you don't own .zshrc. What is the output from:

ls -l ~/.*rc

-rick

The following is the output:

-rw-r--r-- 1 norvinwestjr staff 659 May 27 18:36 /Users/norvinwestjr/.bashrc
-rw-r--r-- 1 norvinwestjr staff 100 Jan 14 12:40 /Users/norvinwestjr/.condarc
-rw-r--r-- 1 root staff 281 Jan 14 11:42 /Users/norvinwestjr/.tcshrc
-rw-r--r-- 1 root staff 635 Jan 14 11:42 /Users/norvinwestjr/.xonshrc
-rw-r--r-- 1 root staff 446 Jan 14 11:42 /Users/norvinwestjr/.zshrc

Then you might run:

cd
sudo chown norvinwestjr .tcshrc .xonshrc .zshrc

Of course, you might have to go after the whole tree, but maybe start there.

-rick

After that, it asked for my password and then there was no output.

But now you should own those files, and can properly do the init_user_dotfiles.py step.
Actually, you should probably just run the user-level install script again.

-rick