Error on installing AFNI on CentOS7

Dear AFNI Community,

I am installing AFNI on a Linux CentOS7 system following the installation tutorial: Fedora and Red Hat Linux: The essential system setup.
The tutorial requires to install R using the following commands:

for tcsh:
setenv R_LIBS $HOME/R
mkdir $R_LIBS
echo ‘setenv R_LIBS ~/R’ >> ~/.cshrc
curl -O https://afni.nimh.nih.gov/pub/dist/src/scripts_src/@add_rcran_ubuntu.tcsh
sudo tcsh @add_rcran_ubuntu.tcsh

The command “sudo tcsh @add_rcran_ubuntu.tcsh” gave the error message:

awk: fatal: cannot open file `/etc/lsb-release’ for reading (No such file or directory)

++ Linux codename is:

++ Adding R-cran mirror to repository list.
tee: /etc/apt/sources.list: No such file or directory
apt-key: Command not found.
++ Going to install new R now, removing any old one first.
apt-get: Command not found.
apt-get: Command not found.
apt-get: Command not found.
apt-get: Command not found.

Can you help me, please?
Thank you very much,
CL

Hi CL,

Forget that @add_rcran_ubuntu.tcsh script, that is a
mistake on our end. Please run:

rPkgsInstall -pkgs ALL

  • rick

Dear Rick,

thank you very much for helping me. It worked.

Now I’m at “Prepare for Bootcamp” step of the installation. The command “tcsh s2.cp.files . ~” gave the following error message:

error: destination directory is not writable: /root

Did I miss anything on installing?

Thank you very much,
CL

Hi CL,

Are you an administrator installing AFNI for multiple users?

If not, it is strange that apparently ~ resolves to /root.

Would you please send me the system check output? Run:

afni_system_check.py -check_all

and mail the output to afni.bootcamp AT gmail.com .

Thanks,

  • rick

Dear Rick,

It was just a problem of permission. I fixed the bug.

Thank you very much,
CL