Dear FDs,

According to the instructions, I have cut the 4 lines between the “CUT HERE”, copy and past the 4 lines into my license.txt file in the home directory to freesurfer folder as follow:

-------------------------------------------------------------------------------------------------------
PART C. MISCELLANEOUS

This Agreement shall be governed by and construed in accordance with
the laws of The Commonwealth of Massachusetts without regard to
principles of conflicts of law. This Agreement shall supercede and
replace any license terms that you may have agreed to previously with
respect to FreeSurfer.

dannytang023@gmail.com
33367
*CL6BxmQcdv6k
FScW2..sWlD9c
--------------------------------------------------------------------------------------------------------
However,when I tried to test my installation using the sample-001, it shows the error message as follow:

Xues-MacBook-Air:~ DannyDeng$ cp $FREESURFER_HOME/subjects/sample-001.mgz
usage: cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file target_file
       cp [-R [-H | -L | -P]] [-fi | -n] [-apvX] source_file ... target_directory
Xues-MacBook-Air:~ DannyDeng$ mri_Convert sample-001.mgz sample-001.nii.gz
mri_convert.bin sample-001.mgz sample-001.nii.gz 
$Id: mri_convert.c,v 1.226 2016/02/26 16:15:24 mreuter Exp $
reading from sample-001.mgz...
--------------------------------------------------------------------------
ERROR: Invalid FreeSurfer license key found in license file /Applications/freesurfer/license.txt
  If you are outside the NMR-Martinos Center,
  go to http://surfer.nmr.mgh.harvard.edu/registration.html to 
  get a valid license file (it's free).
  If you are inside the NMR-Martinos Center,
  make sure to source the standard environment.
--------------------------------------------------------------------------
Xues-MacBook-Air:~ DannyDeng$ 


Please help. thanks


However
Best Regards,
Danny Deng