software:install
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:install [2020/05/12 13:02] – himuser | software:install [2025/06/27 14:12] (current) – himuser | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== FAIRsoft | + | ==== PRIMASOFT Installation |
+ | **Docker installation**\\ | ||
+ | The PRIMA software for analysis, simulation, etc. is inside a Docker container. In case you are not running primasoft in any of EMP's pc's, then first you will need to install Docker. Check how to do it here: | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
- | FAIRsoft should be installed (see [[https:// | + | **Git clone the image**\\ |
- | Or follow this description: | + | Now you need to pull the Docker image from the EMP GitLab repository. Open a new terminal, and do: |
- | + | ||
- | **Install | + | |
- | Debian, Ubuntu | + | |
< | < | ||
- | $ apt-get install | + | git clone https:// |
- | debianutils build-essential make patch sed \ | + | |
- | libx11-dev libxft-dev libxext-dev libxpm-dev libxmu-dev \ | + | |
- | libglu1-mesa-dev libgl1-mesa-dev \ | + | |
- | libncurses5-dev curl libcurl4-openssl-dev bzip2 libbz2-dev gzip unzip tar \ | + | |
- | subversion | + | |
- | libc6-dev-i386 libxml2-dev wget libssl-dev libkrb5-dev \ | + | |
- | automake autoconf libtool | + | |
</ | </ | ||
- | **Clone the Fairsoft package**\\ | + | **Start the container**\\ |
- | e.g. to your home directory ''/ | + | Before starting the proper docker container, you need to add your personal user into the docker group. For that, do: |
< | < | ||
- | $ git clone https:// | + | usermod -a -G < |
- | Cloning into 'fairsoft_may18'... | + | </code> |
- | remote: Counting objects: 1385, done. | + | After that, you will need to 're-enter' |
- | remote: Total 1385 (delta 0), reused 0 (delta 0), pack-reused 1385 | + | < |
- | Receiving objects: 100% (1385/ | + | su < |
- | Resolving deltas: 100% (904/904), done. | + | </code> |
- | Checking connectivity... done. | + | and then write |
- | + | < | |
- | $ cd fairsoft_may18 | + | groups |
</ | </ | ||
+ | Once you type that, you should be able to see all groups your user is in, so the '' | ||
- | **Launch | + | **Starting |
- | and answer | + | Now you need to start the container so you can run the full primasoft. Write: |
- | - GCC (Linux) | + | < |
- | - Optimize with Debug Info | + | $ cd primasoft |
- | - Would you like to install FairMQ only? - No | + | $ ./start_run.sh |
- | - Would you like to install Simulation engines and event generators? - Yes | + | </code> |
- | - Would you like to install the additionally available data files the GEANT4 package? - Internet | + | |
- | - Would you like to install the python bindings for Geant4 and Root? - No | + | |
- | - Please define a directory for the installation of the external packages. - '' | + | |
- | - Is /home/ | + | |
- | Now you can start doing something else, since the installation will take some time. At the end, you should | + | A new container with the name primaSoft-dev should be created. After running ./ |
< | < | ||
- | **** Checking libraries in /home/pandauser/fairsoft_jun19/build/lib **** | + | ./ |
- | *** End installation of external packages without Errors*** | + | The default directory for G4WORKDIR is /home/foski/geant4_workdir. You can change it by adding -DG4WORKDIR=${Your_Host_Dir} to run this script. |
+ | access control disabled, clients can connect from any host | ||
+ | starting new container with name primaSoft-dev... | ||
+ | Unable to find image ' | ||
+ | 2501: Pulling from emp/ | ||
+ | 54609b48ebc1: | ||
+ | 37577e941a51: | ||
+ | e8d35fa376e8: | ||
+ | 279d4a417a51: | ||
+ | ae2ad9eaf997: | ||
+ | acacd230c1e4: | ||
+ | 17d4bdcfb566: | ||
+ | 45ec860a2ac8: | ||
+ | 4f4fb700ef54: | ||
+ | Digest: sha256: | ||
+ | Status: Downloaded newer image for registry.gitlab.rlp.net/ | ||
+ | ec6f1e35929d0f6f8720fc46ec303b2d4993dd43aa61526b0f61b523f6fcd35d | ||
+ | new container started with id ec6f1e35929d | ||
+ | G4VMCDIR set to / | ||
+ | ubuntu@oskar: | ||
</ | </ | ||
- | In case some error has occurred try it again. If it is still not working ask for help. | + | The last line means your are already inside the container under the '' |
+ | == Set the environment == | ||
+ | < | ||
+ | source ./setenv.sh | ||
+ | cd utils/ | ||
+ | make | ||
+ | cd ~/ | ||
+ | mkdir lib | ||
+ | make | ||
+ | </ | ||
- | ==== Primasoft ==== | + | == Compile geant4 simulation |
- | + | ||
- | === Get source code === | + | |
< | < | ||
- | git clone agmaas@bwec-fileserver: | + | cd ~/primasoft/geant4 |
+ | make | ||
</ | </ | ||
- | since 2020: | + | == Execute geant4 simulation == |
< | < | ||
- | git clone https:// | + | geant4$ primag4sim primag4sim.conf |
</ | </ | ||
- | \\ | + | **Rootmacros** |
- | === Set the enviroment === | + | In order to execute rootmacros, |
+ | This can be done automatically with a '' | ||
+ | Create the rootlogon.C file: | ||
< | < | ||
- | cd primasoft/ | + | $ cd ~/ |
+ | $ mkdir .rootlogon | ||
+ | $ geany .rootlogon/ | ||
</ | </ | ||
- | Define | + | |
+ | Enter the following lines to your rootlogon.C file: | ||
< | < | ||
- | export FAIRSOFT_BUILD_DIR=/path/to/fairsoft/build | + | // This is the file rootlogon.C |
- | source setenv.sh | + | { |
+ | printf(" | ||
+ | |||
+ | gROOT-> | ||
+ | | ||
+ | } | ||
</ | </ | ||
- | \\ | + | Here, '' |
- | === Compile geant4 simulation === | + | |
+ | Now root needs to know where to find the rootlogon.C file. Therefore in '' | ||
< | < | ||
- | cd geant4/ | + | Rint.Logon: |
- | source $FAIRSOFT_BUILD_DIR/ | + | |
- | make | + | |
</ | </ | ||
+ | to: | ||
+ | < | ||
+ | Rint.Logon: | ||
+ | </ | ||
+ | |||
+ | Now you can execute the rootmacro: | ||
+ | < | ||
+ | /geant4$ root -l rootmacros/ | ||
+ | </ |
software/install.1589288532.txt.gz · Last modified: (external edit)