External Email - Use Caution
This installation worked accordingly: https://secure-web.cisco.com/1MJ_TJWUMjY6Ctscf9lAD3FAyQ0T6kPXgTypmYhYSIpPMR9...
banikr2@banikr:~$ export FREESURFER_HOME=/usr/local/freesurfer banikr2@banikr:~$ export SUBJECTS_DIR=$FREESURFER_HOME/subjects banikr2@banikr:~$ source $FREESURFER_HOME/SetUpFreeSurfer.sh -------- freesurfer-linux-centos6_x86_64-7.1.1-20200723-8b40551 -------- Setting up environment for FreeSurfer/FS-FAST (and FSL) FREESURFER_HOME /usr/local/freesurfer FSFAST_HOME /usr/local/freesurfer/fsfast FSF_OUTPUT_FORMAT nii.gz SUBJECTS_DIR /usr/local/freesurfer/subjects MNI_DIR /usr/local/freesurfer/mni FSL_DIR /usr/local/fsl banikr2@banikr:~$ which freeview /usr/local/freesurfer/bin/freeview
Are there any other checks to ensure the correct installation?
Rana Banik
________________________________ From: freesurfer-bounces@nmr.mgh.harvard.edu freesurfer-bounces@nmr.mgh.harvard.edu on behalf of Banik, Rana rana.banik@vanderbilt.edu Sent: Sunday, September 26, 2021 4:08 AM To: fsbuild fsbuild@contbay.com; freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu Subject: Re: [Freesurfer] Freesurfer installation error?
External Email - Use Caution
Hello, Please see the following installation I attempted.
banikr2@banikr:~$ which yum I already had a previous faulty freesurfer installed. banikr2@banikr:~$ ls -l -h
drwxrwsr-x 17 banikr2 banikr2 4.0K Jul 23 2020 freesurfer -rwxrwxrwx 1 banikr2 banikr2 4.4G Sep 24 13:17 freesurfer-linux-centos6_x86_64-7.1.1.tar.gz
For some reason, the freesurfer directory had only 4Kb size.
banikr2@banikr:~$ rm -rf freesurfer banikr2@banikr:~$ ls -l -h
-rwxrwxrwx 1 banikr2 banikr2 4.4G Sep 24 13:17 freesurfer-linux-centos6_x86_64-7.1.1.tar.gz
banikr2@banikr:~$ cd $HOME banikr2@banikr:~$ sum freesurfer-linux-centos6_x86_64-7.1.1.tar.gz 55852 4560006
banikr2@banikr:~$ tar zxpf freesurfer-linux-centos6_x86_64-7.1.1.tar.gz banikr2@banikr:~$ ls -l -h
drwxrwsr-x 17 banikr2 banikr2 4.0K Jul 23 2020 freesurfer -rwxrwxrwx 1 banikr2 banikr2 4.4G Sep 24 13:17 freesurfer-linux-centos6_x86_64-7.1.1.tar.gz
banikr2@banikr:~$ ls freesurfer ASegStatsLUT.txt DefectLUT.txt FreeSurferColorLUT.txt fsfast python SetUpFreeSurfer.sh subjects WMParcStatsLUT.txt average diffusion FreeSurferEnv.csh lib SegmentNoLUT.txt Simple_surface_labels2009.txt tkmeditParcColorsCMA bin docs FreeSurferEnv.sh matlab sessions sources.csh tktools build-stamp.txt etc fsafd mni SetUpFreeSurfer.csh sources.sh trctrain banikr2@banikr:~$ export FREESURFER_HOME=$HOME/freesurfer banikr2@banikr:~$ 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/fsl
banikr2@banikr:~$ ls -l -h
drwxrwsr-x 17 banikr2 banikr2 4.0K Jul 23 2020 freesurfer -rwxrwxrwx 1 banikr2 banikr2 4.4G Sep 24 13:17 freesurfer-linux-centos6_x86_64-7.1.1.tar.gz
The same error persists.
Rana Banik
________________________________ From: fsbuild fsbuild@contbay.com Sent: Saturday, September 25, 2021 8:23 PM To: freesurfer@nmr.mgh.harvard.edu freesurfer@nmr.mgh.harvard.edu Cc: Banik, Rana rana.banik@vanderbilt.edu Subject: Re: [Freesurfer] Freesurfer installation error?
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 MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/15JdnGrPEmwrQikplHPE21Dx6Vr28jzZbOQiSlJOZ_tge5O...https://secure-web.cisco.com/1jyjNLqUz993PwEul_uxLbGCUio0qZ7AGGqmIzI2rl5dp0BGI5QG6Nv0Lr4gZytvP7RWxF9K8nOucfFA_r6EuORdmwkG1zWCM2WBtTZXsTHEDLjVIJ8_rAW-v-45Yi9_S_K101s6vpPwLfxO_BUcmCPGcsoNQhdhiSOW0QcC3xI_MpjrHrVSHRfq9Bi2G2uPZSvo5KKcwY0I53Cq3xX9vVg-66Lyi5XMGumbGQ-b2gk4vpHVDp25FyfOxSrGrXxjxYgbnk-s8gTcJCI_I80O8kQ/https%3A%2F%2Fnam04.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fsecure-web.cisco.com%252F1PL-L_YJHtQOCzBq-VQcuzUaiEjGuvnLcgtkaoiVGr68TkO710MGXvreNvP7Mn20BI6InLWdckZKxww1ConM3vWaV77xnfsDZiWHMZh67ckihbMzVTvasTdsjV6Z7Uni7F46WvqnXCOgKZx6nqP8hMgiH2EqLDmPYHJM6NuLZTOuwUZ_weUyT8OJvJFJmUTpdeSl9mlbWLpl1MJeIDP-zsYLeu4CsJZEbDzaxdLP1IVS4I14GD5pjB7So-nMYoJgVVYeD_qvTFJGbEaXLRn7ZHw%252Fhttps%25253A%25252F%25252Fnam04.safelinks.protection.outlook.com%25252F%25253Furl%25253Dhttps%2525253A%2525252F%2525252Fsurfer.nmr.mgh.harvard.edu%2525252Fpub%2525252Fdist%2525252Ffreesurfer%2525252F7.1.1%2525252Ffreesurfer-CentOS6-7.1.1-1.x86_64.rpm%252526data%25253D04%2525257C01%2525257Crana.banik%25252540vanderbilt.edu%2525257Cbf767190822041d1503008d9808c3230%2525257Cba5a7f39e3be4ab3b45067fa80faecad%2525257C0%2525257C0%2525257C637682162319933158%2525257CUnknown%2525257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%2525253D%2525257C3000%252526sdata%25253DwR8yu3P%2525252BG06lsgh5iPZqa2Nm0UfgPmH%2525252FJJokscc0Xjs%2525253D%252526reserved%25253D0%26data%3D04%257C01%257Crana.banik%2540vanderbilt.edu%257C2ab5968e5f1e469cb5e408d980cd48fb%257Cba5a7f39e3be4ab3b45067fa80faecad%257C0%257C0%257C637682441880148449%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C3000%26sdata%3DwZxmZSiYA7BPRsrP8vbvJ99D5LciTc5sPY1jLYsT0lg%253D%26reserved%3D0
… 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.rpm 53407 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 MailScanner has detected a possible fraud attempt from "secure-web.cisco.com" claiming to be https://secure-web.cisco.com/17pO1AQxYKHCFLTELRNRn_cFX9vw3TRxOmmOEVg5pt7q0j9...https://secure-web.cisco.com/14XV9524Ap0-B6iv8YRUyaXgr6P8QpuF4um3jihk3PyD2O-9xlnljAm2fO13Wc4tQ7eIBDcXGNvgjFZ0sgoonirDP2AC9vanqGEj3G012EscpM6VYfYK8egLPS93IY-HeGEN-eIm7AMciGMvj-skzpDRJ4jYg8ovf7gVLEPPnb7zSX3wpRTU1aV3wI_oRpYj1BbrfOLDH8iA1UYY84DiietVttvN7zncUsa2pSNCcP-dzyqFTMemHugYrsqpYiV1TTnRR1LBai7PWhdSxidG6-A/https%3A%2F%2Fnam04.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fsecure-web.cisco.com%252F170v_LLQhqJ1ATODgzv5IO-n12p6CEY7HjQfET8QLoxGYap_xD18BzwpJfKC59t-R5twLsw33OfLstRljZPUHFvnToVzvlstGCURFShfUAwyctf6TMvB9Vu7wTO7vJ7SXrujPmpcQ6i0GkZYQjWACmGgZL0ld3SR4mIqtKn5jim36LCixvLfG30hj2Dcyr49APHJbzJuWYY4SEQxHp_GKcM-SsxJTpN_K6Uz08PCRCpNJ4CaLxMpJRGqmkedUY3b-2psffr9pvh2hczytl_-lNg%252Fhttps%25253A%25252F%25252Fnam04.safelinks.protection.outlook.com%25252F%25253Furl%25253Dhttps%2525253A%2525252F%2525252Fsurfer.nmr.mgh.harvard.edu%2525252Fpub%2525252Fdist%2525252Ffreesurfer%2525252F7..1.1%2525252Ffreesurfer-linux-centos6_x86_64-7.1.1.tar.gz%252526data%25253D04%2525257C01%2525257Crana.banik%25252540vanderbilt.edu%2525257Cbf767190822041d1503008d9808c3230%2525257Cba5a7f39e3be4ab3b45067fa80faecad%2525257C0%2525257C0%2525257C637682162319943150%2525257CUnknown%2525257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%2525253D%2525257C3000%252526sdata%25253D0aYjF%2525252FDQsV%2525252F904wxGhPqj5QUY1YuJXes%2525252Blc3HAUI9mQ%2525253D%252526reserved%25253D0%26data%3D04%257C01%257Crana.banik%2540vanderbilt.edu%257C2ab5968e5f1e469cb5e408d980cd48fb%257Cba5a7f39e3be4ab3b45067fa80faecad%257C0%257C0%257C637682441880158443%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C3000%26sdata%3DUltSAr5bc2trZ4FXPtp7D3xGTdSUafPZdjyk3yWEFLw%253D%26reserved%3D0
… 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.gz 55852 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@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/fsl
I can run freeview with the following:
banikr2@banikr:~/freesurfer$ freeview
Is the installation done correctly? Do the warnings compromise anything?
Rana Banik _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edumailto:Freesurfer@nmr.mgh.harvard.edu https://secure-web.cisco.com/1yT-3W8puyc22tRUcUsaIE2-_pk6AoYUs_nVRPvgfpeuPUv...https://secure-web.cisco.com/1p9tPDo6y2tGYIUIMi6fT6TT6P-OJtNNJkQIWLgKFNafPZY1ZSIQhdC6P3bxIRA8TayWNBONHl-zsiMa9_0kIS54uFMoQLi_8iXw6HgekgXlFhEXCNWlKKmxy1XpYyJI6pJW0I4n-wds8n-BGPvD88Xdk06af1yyxByY_bIQIThl9YWXZG66TKhTLObTKWUzhSPkiu9qyYdqo2vjdXb62U8rmIvCx6cKgVVT-oOo8UYA/https%3A%2F%2Fnam04.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fsecure-web.cisco.com%252F1vhx3uNACxNjrbYNx_NyGTF07YN-Q0DOT-zUq7jOb_xI3FkisWteam822iKu2h6SjATVSkA6qayFZHIpsXvK1oiXTSpQo21H--B_j8tAFnzMbyKXPDmQ5NZmyqpTCxB1wxRm04Id7kyK3xctS1t5-Gm8NnRCWZjYE7N9jYOA9LbXYTYUnhaOdjSJ22C1LmsP_ltaY4hUoJunBaAJoDXlIx4B75s6gdHY-IjsQaRHNFdq8AQyM3_U9r2JMPL9unJV0ts-97DwTf9quO-RRVoSz2w%252Fhttps%25253A%25252F%25252Fnam04.safelinks.protection.outlook.com%25252F%25253Furl%25253Dhttps%2525253A%2525252F%2525252Fsecure-web.cisco.com%2525252F1yT-3W8puyc22tRUcUsaIE2-_pk6AoYUs_nVRPvgfpeuPUvABxAH0wzC62hfxyAycAG9LAzP0fbeYgwV7ey4k-31gAAV43Ty4j2Nt_UzE5OsPUgOsxml0z0ZUDKqdXoM5xAUb7_Rx0WWdTUIGSCLqN7d5So9AWQflKTUVR9ddUEEMzTXE6HBTIcOvwjGPMyOyAGNAQp_0E4Er79sEgvLYnzDzK48vqeC7_ivSNebZjO2FFGasg49YnAPguWTvN0OyglixpRu82rlD0cT88xX0RQ%2525252Fhttps%252525253A%252525252F%252525252Fmail.nmr.mgh.harvard.edu%252525252Fmailman%252525252Flistinfo%252525252Ffreesurfer%252526data%25253D04%2525257C01%2525257Crana.banik%25252540vanderbilt.edu%2525257Cbf767190822041d1503008d9808c3230%2525257Cba5a7f39e3be4ab3b45067fa80faecad%2525257C0%2525257C0%2525257C637682162319953143%2525257CUnknown%2525257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%2525253D%2525257C3000%252526sdata%25253DcMjeNN%2525252B%2525252FwDOn2kLYEewTGm3e6FpBHMuPEGlnSNacyKQ%2525253D%252526reserved%25253D0%26data%3D04%257C01%257Crana.banik%2540vanderbilt.edu%257C2ab5968e5f1e469cb5e408d980cd48fb%257Cba5a7f39e3be4ab3b45067fa80faecad%257C0%257C0%257C637682441880168442%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C3000%26sdata%3Dt7HKGrhUEyeBZjwrUnHOPvbl0rVxxfuLCBXvvQDmnR0%253D%26reserved%3D0