I installed FreeSurfer on my computer today using the instructions found here:
https://surfer.nmr.mgh.harvard.edu/fswiki/DownloadAndInstall. After installation, I proceed to the “test your FreeSurfer Installation” section. Upon trying the first test, I ran the following and code and received the following error.
Sherryses-iMac:~ sherrysecorrow$ cd $FREESURFER_HOME/subjects
Sherryses-iMac:subjects sherrysecorrow$ mri_convert sample-001.mgz sample-001.nii.gz
mri_convert sample-001.mgz sample-001.nii.gz
$Id: mri_convert.c,v 1.179.2.7 2012/09/05 21:55:16 mreuter Exp $
reading from sample-001.mgz...
TR=7.25, TE=3.22, TI=600.00, flip angle=7.00
i_ras = (-0, -1, -0)
j_ras = (-0, 0, -1)
k_ras = (-1, 0, 0)
writing to sample-001.nii.gz...
niiWrite(): error opening file sample-001.nii.gz
ERROR: failure writing sample-001.nii.gz
I’ve searched the list and was unable to find someone with the same error in the archives. Any thoughts on how to fix this?