I am working on a research project that requires me to utilize data from NASA's Fermi Large Area Telescope. NASA provides users with a package of tools to manipulate and utilize the data they'd be encountering but is accompanied with a poor installation guide.
I have installed these tools(modules) successfully but for some reason they seem to work within one terminal only. If I were to open another terminal and tried to use a module, example: gtselect, it would not recognize the command while the other terminal I originally installed the package on would.
Also whenever I close the terminal such as shutting down my computer for the evening the next day I must reinstall the software. (There is no hard-drive protection software on this PC that may be restoring the HDD to a previous state)
That all being said I decided to write a bash shell script to do the install for me each time I need to in order to remove the hassle of typing long path names over and over again. For some reason, however, the bash script does not work and the tools I try to use remain unrecognised.
Here are the commands that, if I enter manually one at a time in this order, install both packages correctly for me to utilize:
cd /home/dwoodson/FermiScienceTools/ScienceTools/Ubuntu/BUILD_DIR
./configure
export FERMI_DIR=/home/dwoodson/FermiScienceTools/ScienceTools/Ubuntu
source $FERMI_DIR/fermi-init.sh
cd /home/dwoodson/HEASoft/heasoft-6.16/x86_64-unknown-linux-gnu-libc2.5/BUILD_DIR
./configure
export HEADAS=/home/dwoodson/HEASoft/heasoft-6.16/x86_64-unknown-linux-gnu-libc2.5
source $HEADAS/headas-init.sh
These lines were given to me specifically from the NASA installation guide. I did not devise these on my own.
I put these lines exactly into a bash shell script:
#!/bin/bash
cd /home/dwoodson/FermiScienceTools/ScienceTools/Ubuntu/BUILD_DIR
./configure
export FERMI_DIR=/home/dwoodson/FermiScienceTools/ScienceTools/Ubuntu
source $FERMI_DIR/fermi-init.sh
cd /home/dwoodson/HEASoft/heasoft-6.16/x86_64-unknown-linux-gnu-libc2.5/BUILD_DIR
./configure
export HEADAS=/home/dwoodson/HEASoft/heasoft-6.16/x86_64-unknown-linux-gnu-libc2.5
source $HEADAS/headas-init.sh
One installs correctly, the other does not. Please let me know if anyone can be of assistance.
Thank you
.bashrc
or whatever config file for the shell you are using.