External Email - Use Caution
It looks like you want to install and run the 7.1.1 release on CentOS6.
The fsfast and mni subdirectories are in the distribution, so I am not sure why you are getting that output. I suggest trying to do a clean install from scratch. There are a couple of ways to do that, i.e., clean install under /usr/local and-or clean install under your home ($HOME) directory. I will list instructions for both.
If you already installed under /usr/local, then you should have sudo/admin privileges to write files there. A simple way to check that is to try and run a harmless command with sudo, e.g.,
$ sudo date[sudo] password for <your userid>: <—— enter your password
If your password is accepted then the date command will run and print out the date. If not, it will ask you to enter a password again. If your password does not work then it means you do not have sudo privileges and you won't be able to run the installer. In that case, hit Ctrl-C to get out of the password prompt and go to INSTALL IN HOME DIRECTORY below. You should not need any special privileges to write or delete files on your home directory.
CLEAN INSTALL IN /USR/LOCAL
Only try this if sudo/admin privileges worked above for the command “sudo date”.
First make sure you have the “yum” command installed,$ which yum/usr/bin/yum
If you don’t have the yum package manager command installed, then stop and go to the instructions for INSTALL IN HOME DIRECTORY.
If you do have the yum command, then make sure you can download the CentOS6 installer. You can download this directly into your home directory from the terminal,
$ cd $HOME
… get the 7.1.1 installer for CentOS6 … if wget does not work or you don’t have that command you can use that link in your browser to download it ...
$ wget https://secure-web.cisco.com/1B_8WKZfHlV6TNLk-tm-JksrqbEl40VQhIwjbDLmV-ylwU7XH2EAqoO0Q7d0jXgZYHu0VPnch3AqmZKjSQ0Bmdebm4YLKAOoiZw0fR48S37iQnvyrf2KLOnQUwBsuIUSGrYnPw2U_Wj683TRLq66t6yEJulO5HYRowoqIwKAjgfBMEJzXntKwrgg8YAJ6LjGkScOtif3h6bAalhL6heDeKv7_-zsKJMqdQdWWP4ruGGoDgkL9qlD2oRte-HOYVidpbK6L36OK2J0pnVvwuBGFKA/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Fpub%2Fdist%2Ffreesurfer%2F7.1.1%2Ffreesurfer-CentOS6-7.1.1-1.x86_64.rpm
… wait for the download to finish via its progress bar and then check you have the complete installer file ...
$ sum freesurfer-CentOS6-7.1.1-1.x86_64.rpm53407 3836829
If you did not get those exact numbers from the output of the checksum command, then re-try your download until you get that result. If you can’t get the download to work then go to instruction for INSTALL IN HOME DIRECTORY.
If the download worked, then remove any existing freesurfer installation under /usr/local
$ cd /usr/local$ ls
If you do not see a freesurfer subdirectory then skip the next 2 commands (chmod and rm) and proceed to running the installer,
$ sudo chmod -R 777 freesurfer$ sudo rm -rf freesurfer
Now ls and make sure no freesurfer directory is there,
$ ls
Now try running the installer from your home directory,
$ cd $HOME$ sudo yum —nogpgcheck localinstall freesurfer-CentOS6-7.1.1-1.x86_64.rpm
… answer y (for yes) to any questions and wait for the install to finish …
Now do an ls of the new installation,
$ ls /usr/local/freesurfer/7.1.1-1
… and you should see both an fsfast and mni subdirectory there.
Try setting the environment again but with FREESURFER_HOME set to the new install path,$ export FREESURFER_HOME=/usr/local/freesurfer/7.1.1-1$ source $FREESURFER_HOME/SetUpFreeSurfer.sh
CLEAN INSTALL IN HOME DIRECTORY
This should work no matter what is or is not installed under /usr/local.
Go to your home directory (always set as the value of the environment variable HOME)
$ cd $HOME
… get the 7.1.1 tar archive for CentOS6 … if wget does not work or you don’t have that command you can use that link in your browser to download it ...
$ wget https://secure-web.cisco.com/11zPV9NZ3Ex-1wASONnitG0xlqQgwcqw2vL1B1sywAZjAqytIaxxH3dJltyOPZMdcURt-onoPFGK-61rYdFlH39LCy8XGcP_QqK0RQt5n_T6pzBopyhoAr4Lof7I0WVP-JjBVv7HrKUXxGAgT7sFW7w_dK0TUCw6Y8PK7B1C3fC7_v2n38BIM9vsvz_wLV5kt5EBLQIAXxkOfqviOtQPr5szURoGI3FF5LlLJ7gQRT_7n2kOELAjU4wlWpk30C_kYnZbC47IZR8hsoKNNcslc4g/https%3A%2F%2Fsurfer.nmr.mgh.harvard.edu%2Fpub%2Fdist%2Ffreesurfer%2F7.1.1%2Ffreesurfer-linux-centos6_x86_64-7.1.1.tar.gz
… wait for the download to finish via its progress bar and then check you have the complete archive file ...
$ sum freesurfer-linux-centos6_x86_64-7.1.1.tar.gz55852 4560006
If you did not get those exact numbers from the output of the checksum command, then re-try your download until you get that result.
If the download worked, then remove any existing freesurfer installation
$ ls
If you do not see a freesurfer subdirectory then skip the “rm” command
$ rm -rf freesurfer
Now unarchive the tar archive with,
$ tar zxpf freesurfer-linux-centos6_x86_64-7.1.1.tar.gz
You should now have a ./freesufer directory under $HOME. With ls command you should see the fsfast and mni subdirectories there,
$ ls freesurfer
Try setting the environment again but with FREESURFER_HOME set to ./freesurfer under your HOME directory. (Note there is no subdirectory with a version number when using the tar archive).$ export FREESURFER_HOME=$HOME/freesurfer$ source $FREESURFER_HOME/SetUpFreeSurfer.sh
- R.
On Sep 25, 2021, at 12:39, Banik, Rana <rana.banik(a)vanderbilt.edu> wrote: External Email - Use Caution External Email - Use Caution Installed freesurfer with the following errors. banikr2@banikr:~/freesurfer$ source $FREESURFER_HOME/SetUpFreeSurfer.sh
-------- freesurfer-linux-centos6_x86_64-7.1.1-20200723-8b40551 --------
Setting up environment for FreeSurfer/FS-FAST (and FSL)
WARNING: /usr/local/freesurfer/fsfast does not exist
FREESURFER_HOME /home/banikr2/freesurfer
FSFAST_HOME /usr/local/freesurfer/fsfast
FSF_OUTPUT_FORMAT nii.gz
SUBJECTS_DIR /home/banikr2/freesurfer/subjects
MNI_DIR /usr/local/freesurfer/mni
WARNING: MINC_BIN_DIR '/usr/local/freesurfer/mni/bin' does not exist.
WARNING: MINC_LIB_DIR '/usr/local/freesurfer/mni/lib' does not exist.
FSL_DIR /usr/local/fslI can run freeview with the following: banikr2@banikr:~/freesurfer$ freeviewIs the installation done correctly? Do the warnings compromise anything? Rana Banik_______________________________________________Freesurfer mailing listFreesurfer@nmr.mgh.harvard.eduhttps://secure-web.cisco.com/1yT-3W8puyc22tRUcUsaIE2-_pk6AoYUs_nVRPvgfpeuPUvABxAH0wzC62hfxyAycAG9LAzP0fbeYgwV7ey4k-31gAAV43Ty4j2Nt_UzE5OsPUgOsxml0z0ZUDKqdXoM5xAUb7_Rx0WWdTUIGSCLqN7d5So9AWQflKTUVR9ddUEEMzTXE6HBTIcOvwjGPMyOyAGNAQp_0E4Er79sEgvLYnzDzK48vqeC7_ivSNebZjO2FFGasg49YnAPguWTvN0OyglixpRu82rlD0cT88xX0RQ/https%3A%2F%2Fmail.nmr.mgh.harvard.edu%2Fmailman%2Flistinfo%2Ffreesurfer