Hello Claudia,

 

It may be due to FreeSurfer not being sourced properly within your terminal. If you are working in a Cshell environment, source FreeSurfer with these commands: You can make sure you’re in Cshell by typing tcsh.

 

setenv FREESURFER_HOME <freesurfer_installation_directory>/freesurfer

source $FREESURFER_HOME/SetUpFreeSurfer.csh

 

If you’re working in bash

 

export FREESURFER_HOME=<freesurfer_installation_directory>/freesurfer
source $FREESURFER_HOME/SetUpFreeSurfer.sh

 

To double check that this function exists, you can go into your FreeSurfer installation directory, cd into the bin directory, and check for dcmunpack.

 

Let me know if you’re still running into trouble using this command!

 

Best,

Matt

 

From: freesurfer-bounces@nmr.mgh.harvard.edu <freesurfer-bounces@nmr.mgh.harvard.edu>
Date: Thursday, November 19, 2020 at 7:21 AM
To: freesurfer@nmr.mgh.harvard.edu <freesurfer@nmr.mgh.harvard.edu>
Subject: [Freesurfer] dcmunpack command not found

        External Email - Use Caution        

Hello, i have been trying to use the dcmunpack command and it always says command not found, i searched in the archives and some said it could be because the tcsh or csh wasnt installed however i have both installed (which tcsh and which csh return their location) and when i run dcmunpack it always returns "command not found", how can i solve this?

 

Thank you!