MINC/Tutorials/AddingPaths

All we need to do now is to add the executables to your PATH environment variable. This is different depending on whether you use a sh or csh shell variant. In our case and for the remainder of this tutorial we will presume we are using the bash shell. To do this in bash add the following line to your .bashrc file.

  export PATH=$PATH:/usr/local/bic/bin

Whilst we are at it we should also add the manual pages.

  export MANPATH=$MANPATH:/usr/local/bic/man

If we plan to compile other libraries or executables against the base MINC package we can also add the following to make life easier:

  export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/bic/lib

Depending how you compiled MINC, you may have to export the path to the MNI PERL libraries as well :

  export PERL5LIB=$PERL5LIB:$HOME/minc/perl

If you are using the MINC2 version of the libraries, but want to use the MINC1 format, you will also have to add :

  unset MINC_FORCE_V2

To change the default level of internal compression (minc2 formal only, 0 is no compression, 9 is maximal compression):

  export MINC_COMPRESS=7

Now all we need do is re-source our .bashrc file.

  $ . ~/.bashrc