Difference between revisions of "Solgemc installation outside JLAB"
(Rewrite following more straightforward second installation) |
(Link to new wiki) |
||
(9 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | This page has been moved to [https://solid.jlab.org/wiki/index.php/Solgemc_installation_outside_JLAB https://solid.jlab.org/wiki/index.php/Solgemc_installation_outside_JLAB] in the new [https://solid.jlab.org/wiki SoLID Wiki]. Please do not edit this page. | ||
+ | |||
by Rich Holmes | by Rich Holmes | ||
− | I have been working on getting the Geant4 simulation and related software up and running on a couple of non JLAB systems; here are some notes on what I did most recently | + | I have been working on getting the Geant4 simulation and related software up and running on a couple of non JLAB systems; here are some notes on what I did most recently. This is a much better example to follow than my previous ones, but you can [[Earlier solgemc installation outside JLAB|read about those too]] if you want. |
− | The target system | + | The target system is one running CentOS 6.3 (64 bit). Earlier I installed under Ubuntu 10.10 (32 bit i386) similarly. |
− | + | I followed the procedure [https://gemc.jlab.org/gemc/Support/Entries/2011/8/1_Step_by_Step.html here] to install gemc. | |
− | + | After that: | |
− | + | ||
− | + | ||
− | + | # cd $JLAB_SOFTWARE/evio | |
− | # | + | # ''Edit $JLAB_SOFTWARE/evio/SConstruct: add the following lines after ''env.Append(LIBPATH = ['lib']):<blockquote><br />env.Append(LINKFLAGS = '-fPIC')<br />env.Append(CPPFLAGS = '-fPIC')<br />env.Append(CXXFLAGS = '-fPIC')<br />env.Append(CCFLAGS = '-fPIC')</blockquote> |
− | # ''Edit | + | # scons -c; scons |
− | + | # cd $JLAB_SOFTWARE/gemc | |
− | # | + | # ''Edit $JLAB_SOFTWARE/gemc/SConstruct: copy the env.Library line at the end, paste, and replace env.Library with env.SharedLibrary; also add the following lines after ''env.Append(LIBPATH = ['lib']):<blockquote><br />env.Append(LINKFLAGS = '-fPIC')<br />env.Append(CPPFLAGS = '-fPIC')<br />env.Append(CXXFLAGS = '-fPIC')<br />env.Append(CCFLAGS = '-fPIC')</blockquote> |
+ | # scons -c; scons | ||
− | + | (The '-fPIC' edits were not needed for Ubuntu 10.10.) | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== solgemc == | == solgemc == | ||
− | # svn checkout https://jlabsvn.jlab.org/svnroot/solid/solgemc | + | # svn checkout https://jlabsvn.jlab.org/svnroot/solid/solgemc ''into $JLAB_SOFTWARE/solgemc and cd there'' |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
# scons | # scons | ||
+ | # ''In your ~/.cshrc add $JLAB_SOFTWARE/gemc to LD_LIBRARY_PATH environment variable'' | ||
− | + | For additional packages, e.g. banks, cteq, event generator, root2lund see [[Earlier solgemc installation outside JLAB|Second Installation here]]. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 15:40, 7 December 2020
This page has been moved to https://solid.jlab.org/wiki/index.php/Solgemc_installation_outside_JLAB in the new SoLID Wiki. Please do not edit this page.
by Rich Holmes
I have been working on getting the Geant4 simulation and related software up and running on a couple of non JLAB systems; here are some notes on what I did most recently. This is a much better example to follow than my previous ones, but you can read about those too if you want.
The target system is one running CentOS 6.3 (64 bit). Earlier I installed under Ubuntu 10.10 (32 bit i386) similarly.
I followed the procedure here to install gemc.
After that:
- cd $JLAB_SOFTWARE/evio
- Edit $JLAB_SOFTWARE/evio/SConstruct: add the following lines after env.Append(LIBPATH = ['lib']):
env.Append(LINKFLAGS = '-fPIC')
env.Append(CPPFLAGS = '-fPIC')
env.Append(CXXFLAGS = '-fPIC')
env.Append(CCFLAGS = '-fPIC') - scons -c; scons
- cd $JLAB_SOFTWARE/gemc
- Edit $JLAB_SOFTWARE/gemc/SConstruct: copy the env.Library line at the end, paste, and replace env.Library with env.SharedLibrary; also add the following lines after env.Append(LIBPATH = ['lib']):
env.Append(LINKFLAGS = '-fPIC')
env.Append(CPPFLAGS = '-fPIC')
env.Append(CXXFLAGS = '-fPIC')
env.Append(CCFLAGS = '-fPIC') - scons -c; scons
(The '-fPIC' edits were not needed for Ubuntu 10.10.)
solgemc
- svn checkout https://jlabsvn.jlab.org/svnroot/solid/solgemc into $JLAB_SOFTWARE/solgemc and cd there
- scons
- In your ~/.cshrc add $JLAB_SOFTWARE/gemc to LD_LIBRARY_PATH environment variable
For additional packages, e.g. banks, cteq, event generator, root2lund see Second Installation here.