Installation common problems

From T-40 Tiara at Texas A&M

The best way to have a robust installation for each user is to install root, geant4, nptool and midas2nptool locally and make sure to source their corresponding set-up script in your .bashrc file. Follow these links for quick how-to's to install root, geant4, nptool and midas2nptool.

.bashrc file[edit]

Most of the problems encountered when working on clusters are due to different versions of root or Geant4 installed on the same machine for local and super users. For this you need to make sure your .bashrc file is sourcing all the right scripts. You can find this file in your home directory, copy and paste the following and adapt it to your local directories.

NB: (xxx) is the version, (#) is the comment character for .sh script.

- #ROOT

    #(first source the root version used to compile nptool and midas to nptool and always use it for these frameworks) 
    source /home/<you>/path-to/root/bin/thisroot.sh 
    #(in case you have an alternative root version in parallel, you can still use it by declaring an alias for a new command)
    alias  root6='/home/<you>/path-to-install-dir/root-xxx/bin/root' 

- #Geant4

    source /home/<you>/path-to-install-dir/geant4.xxx/share/Geant4-xxx/geant4make/geant4make.sh

- #NPTOOL

    source /home/<you>/path-to/nptool/nptool.sh

- #MIDAS 2 NPTOOL

    source /home/<you>/path-to/midas2nptool/midas2nptool.sh