exe file not found with which after setting the Path
I need to have an exe file found in the terminal with "which FILE" command. I set the PATH to this file but I cannot find the file with which?
I added
export PATH=$PATH:/Users/neurolab/Desktop/Stephan/Programmes/MSM_old/msm_mac
in ~/.zprofile
. msm_mac
is the binary.
When I type in which msm or msm_mac, the result is msm not found.
Current value of the PATH:
/Users/neurolab/opt/anaconda3/bin:/Users/neurolab/opt/anaconda3/condabin://Users/neurolab/Desktop/Stephan/Programmes/freesurfer/bin://Users/neurolab/Desktop/Stephan/Programmes/freesurfer/fsfast/bin://Users/neurolab/Desktop/Stephan/Programmes/freesurfer/tktools:/Users/neurolab/Desktop/Stephan/Programmes/fsl/bin://Users/neurolab/Desktop/Stephan/Programmes/freesurfer/mni/bin:/Users/neurolab/Desktop/Stephan/Programmes/fsl/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/spjder:/usr/local/munki:/opt/X11/bin:/Users/neurolab/Desktop/Stephan/Programmes/workbench/bin_macosx64i:/Users/neurolab/Desktop/Stephan/Programmes/MSM_old/msm_mac
I am using MBP 2019 with Catalina
What can I do?
Best,
The PATH
is a list of directories so need to add
/Users/neurolab/Desktop/Stephan/Programmes/MSM_old
to your PATH (and re-read ~/.zprofile
) to make it work.