Mutiple GSI-systems: Difference between revisions
(Created page with "Category:software-faq == Configuration of multiple GSI-systems == Once you have used the '''root-setup''' script for either fair, r3b, panda or cbm, you can run the comman...") |
No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:software-faq]] | [[Category:software-faq]] | ||
== Configuration of multiple GSI-systems == | == Configuration of multiple GSI-systems == | ||
Once you have used the '''root-setup''' script for either fair, r3b, panda or cbm, you can run the command '''root-setup <other environment>''' again and it will set up the other environment in your home directory. The easiest way to enable the environment settings for any of the fair environments you have set up, is to '''cat''' your '''.bashrc''' file and run the appropriate '''source''' command (without the '''#'''): | Once you have used the '''root-setup''' script for either cern, fair, r3b, panda or cbm, you can run the command '''root-setup <other environment>''' again and it will set up the other environment in your home directory too. The easiest way to enable the environment settings for any of the fair environments you have set up, is to '''cat''' your '''.bashrc''' file and run the appropriate '''source''' command (without the '''#'''): | ||
'''cat ~/.bashrc''' | '''cat ~/.bashrc''' | ||
Line 7: | Line 7: | ||
'''#!/bin/bash''' | '''#!/bin/bash''' | ||
''<other stuff>'' | ''<other stuff>'' | ||
'''source /opt/netapps/fair_install/ | '''#CernRoot''' | ||
'''#source /opt/netapps/fair_install/ | '''source /opt/netapps/fair_install/FairRoot/build/config.sh &> /dev/null''' | ||
'''#source /opt/netapps/fair_install/ | '''#FairRoot''' | ||
'''#source | '''#source ~/fair_install/FairRoot/build/config.sh &> /dev/null''' | ||
'''#R3BRoot''' | |||
'''#source /opt/netapps/fair_install/R3BRoot/build/config.sh &> /dev/null''' | |||
'''#PandaRoot''' | |||
'''#source /opt/netapps/fair_install/PandaRoot/build/config.sh &> /dev/null''' | |||
'''#CBMRoot''' | |||
'''#source /opt/netapps/fair_install/CBMRoot/build/config.sh &> /dev/null''' | |||
In the above example the default environment set up, is CernRoot. Run the following command to set up the environment settings of your current terminal for CBMRoot: | |||
'''source /opt/netapps/fair_install/ | '''source /opt/netapps/fair_install/CBMRoot/build/config.sh &> /dev/null''' | ||
You can open a different terminal and run a different source command to set up that terminal for a different * | You can open a different terminal and run a different source command to set up that terminal for a different *Root environment. | ||
Remove the '''#''' sign in your '''.bashrc''' file for the environment you want to automatically set up when you open a terminal and add a '''#''' for those environments you don't. | Remove the '''#''' sign in your '''.bashrc''' file for the environment you want to automatically set up when you open a terminal and add a '''#''' for those environments you don't. |
Latest revision as of 13:51, 11 March 2016
Configuration of multiple GSI-systems
Once you have used the root-setup script for either cern, fair, r3b, panda or cbm, you can run the command root-setup <other environment> again and it will set up the other environment in your home directory too. The easiest way to enable the environment settings for any of the fair environments you have set up, is to cat your .bashrc file and run the appropriate source command (without the #):
cat ~/.bashrc
This will give you output similar to this:
#!/bin/bash <other stuff> #CernRoot source /opt/netapps/fair_install/FairRoot/build/config.sh &> /dev/null #FairRoot #source ~/fair_install/FairRoot/build/config.sh &> /dev/null #R3BRoot #source /opt/netapps/fair_install/R3BRoot/build/config.sh &> /dev/null #PandaRoot #source /opt/netapps/fair_install/PandaRoot/build/config.sh &> /dev/null #CBMRoot #source /opt/netapps/fair_install/CBMRoot/build/config.sh &> /dev/null
In the above example the default environment set up, is CernRoot. Run the following command to set up the environment settings of your current terminal for CBMRoot:
source /opt/netapps/fair_install/CBMRoot/build/config.sh &> /dev/null
You can open a different terminal and run a different source command to set up that terminal for a different *Root environment.
Remove the # sign in your .bashrc file for the environment you want to automatically set up when you open a terminal and add a # for those environments you don't.