External Email - Use Caution
Hello Padma,
The freesurfer installation under /Applications on MacOS, like most applications installed there, does not expect users to write their own data into what is installed there. Or the example subjects that are part of the freesurfer installation - pointed to by the environment variable SUBJECTS_DIR - is not meant to be written to with user data.
So just change SUBJECTS_DIR to point to a directory where you have normal write permissions. One location would be your home directory, e.g.,
$ echo $HOME
/Users/padma
$ cd $HOME
$ mkdir subjects
$ export SUBJECTS_DIR=$HOME/subjects
$ echo $SUBJECTS_DIR
/Users/padma/subjects
Then put your subjects data there to process, etc.Here are some links with some additional info,https://secure-web.cisco.com/1whAZMfyHZ4FLyVo5f2kazK_sVsLOEt4UrO4idC_8rAv_Ic... https://secure-web.cisco.com/1J0Gr93Wou3vnAj2gdII49F94CdlmxnssGDtUMKvrvolLz2... R.
On 10/9/22 01:40, priya padma (priya@phenomx.ai) wrote:
External Email - Use Caution Hello Team, Thanks for the help before I successfully opened freeview. now i am trying to run recon-all for a nifti file. After setting the path
export FREESURFER_HOME=/Applications/freesurfer/7.3.2
export SUBJECTS_DIR=$FREESURFER_HOME/subjects
source $FREESURFER_HOME/SetUpFreeSurfer.sh My data is in downloads so I navigated to Downloads and then gave
$ recon-all -s sub01 -i sub-AD003S1059S61129_0000.nii.gz -all but I always get permission error mkdir: /Applications/freesurfer/7.3.2/subjects/sub01: Permission deniedfs-check-version --s sub01 --o /var/folders/j3/plp0z25j1j969hgspftsz2fm0000gp/T//tmp.gqzbloERROR: cannot find sub01recon-all: version check failed
fs-check-version --s sub01 --o /var/folders/j3/plp0z25j1j969hgspftsz2fm0000gp/T//tmp.gqzblo so I did it with sudo then also I get error which I learnt that the environment changes with sudo so we shouldn't use sudo. I tried keeping the data in the subjects folder and still the same error Could you help me with this? Thank you
freesurfer@nmr.mgh.harvard.edu