Hi Eddie,
We have a more compatible package for Rocky 8, with instructions and binaries:
https://github.com/afni/afni/blob/master/src/other_builds/OS_notes.linux_rocky_8.txt
https://afni.nimh.nih.gov/pub/dist/tgz/linux_rocky_8.tgz
Note that those instructions are for a build machine. You should be able to remove -devel from those package names.
But other than the admin instructions, you can follow the same steps, just use package linux_rocky_8 instead of linux_centos_7_64.
- rick