software:install
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:install [2025/06/27 10:19] – himuser | software:install [2025/06/27 14:12] (current) – himuser | ||
---|---|---|---|
Line 19: | Line 19: | ||
</ | </ | ||
After that, you will need to ' | After that, you will need to ' | ||
- | < | + | < |
+ | su < | ||
</ | </ | ||
- | + | and then write | |
- | + | ||
- | FAIRsoft should be installed (see [[https:// | + | |
- | Or follow this description: | + | |
- | + | ||
- | **Install the dependencies**\\ | + | |
- | Debian, Ubuntu | + | |
< | < | ||
- | $ apt-get install | + | groups |
- | 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 git xutils-dev flex bison lsb-release python3-dev \ | + | |
- | libc6-dev-i386 libxml2-dev wget libssl-dev libkrb5-dev \ | + | |
- | automake autoconf libtool | + | |
- | </ | + | |
- | < | + | |
- | sudo apt-get install libxi-dev | + | |
</ | </ | ||
- | **Clone the Fairsoft package**\\ | + | Once you type that, you should be able to see all groups |
- | e.g. to your home directory | + | |
- | < | + | |
- | $ git clone https:// | + | |
- | Cloning into ' | + | |
- | remote: Counting objects: 1385, done. | + | |
- | remote: Total 1385 (delta 0), reused 0 (delta 0), pack-reused 1385 | + | |
- | Receiving objects: 100% (1385/ | + | |
- | Resolving deltas: 100% (904/904), done. | + | |
- | Checking connectivity... done. | + | |
- | </ | + | **Starting the container and testing the simulation**\\ |
- | + | Now you need to start the container so you can run the full primasoft. Write: | |
- | == Switch | + | |
< | < | ||
- | $ cd fairsoft_may18 | + | $ cd primasoft |
- | $ git checkout tags/may18p1 | + | $ ./start_run.sh |
</ | </ | ||
- | + | A new container with the name primaSoft-dev should be created. After running | |
- | **Launch | + | |
< | < | ||
- | #export PYTHIA8_LOCATION=" | + | ./start_run.sh |
- | export PYTHIA8_LOCATION=" | + | The default directory for G4WORKDIR is /home/ |
- | + | access control disabled, clients can connect from any host | |
- | #export GEANT4_LOCATION=" | + | starting new container with name primaSoft-dev... |
- | export GEANT4_LOCATION=" | + | Unable to find image ' |
+ | 2501: Pulling from emp/docker_image_test/prima_soft_nonsu | ||
+ | 54609b48ebc1: | ||
+ | 37577e941a51: Pull complete | ||
+ | e8d35fa376e8: | ||
+ | 279d4a417a51: | ||
+ | ae2ad9eaf997: | ||
+ | acacd230c1e4: | ||
+ | 17d4bdcfb566: | ||
+ | 45ec860a2ac8: | ||
+ | 4f4fb700ef54: | ||
+ | Digest: sha256: | ||
+ | Status: Downloaded newer image for registry.gitlab.rlp.net/emp/docker_image_test/prima_soft_nonsu:2501 | ||
+ | ec6f1e35929d0f6f8720fc46ec303b2d4993dd43aa61526b0f61b523f6fcd35d | ||
+ | new container started with id ec6f1e35929d | ||
+ | G4VMCDIR set to /opt/g4vmc/6.6p1_install | ||
+ | ubuntu@oskar: | ||
</ | </ | ||
- | ))**\\ | ||
- | and answer to the questions as the following: | ||
- | - GCC (Linux) | ||
- | - Optimize with Debug Info | ||
- | - Would you like to install FairMQ only? - No | ||
- | - Would you like to install Simulation engines and event generators? - Yes | ||
- | - 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? - Yes | ||
- | - Please define a directory for the installation of the external packages. - ''/ | ||
- | - Is / | ||
- | Now you can start doing something else, since the installation will take some time. At the end, you should have the following message: | + | The last line means your are already inside |
- | < | + | |
- | **** Checking libraries in / | + | |
- | *** End installation of external packages without Errors*** | + | |
- | </ | + | |
- | + | ||
- | In case some error has occurred try it again. If it is still not working ask for help. | + | |
- | + | ||
- | + | ||
- | + | ||
- | ==== Primasoft ==== | + | |
- | === Get source code === | + | == Set the environment |
< | < | ||
- | git clone agmaas@bwec-fileserver: | + | source ./setenv.sh |
+ | cd utils/ | ||
+ | make | ||
+ | cd ~/primasoft/analysis | ||
+ | mkdir lib | ||
+ | make | ||
</ | </ | ||
- | since 2020: | + | == Compile geant4 simulation == |
- | < | + | |
- | git clone https:// | + | |
- | </ | + | |
- | + | ||
- | \\ | + | |
- | === Set the enviroment === | + | |
- | < | + | |
- | cd primasoft/ | + | |
- | </ | + | |
- | Define the environment variable '' | + | |
- | < | + | |
- | export FAIRSOFT_BUILD_DIR=/ | + | |
- | source setenv.sh | + | |
- | </ | + | |
- | + | ||
- | \\ | + | |
- | === Compile geant4 simulation | + | |
< | < | ||
- | cd geant4/ | + | cd ~/primasoft/geant4 |
- | source $FAIRSOFT_BUILD_DIR/share/ | + | |
make | make | ||
</ | </ | ||
- | + | == Execute geant4 simulation == | |
- | === Execute geant4 simulation | + | |
< | < | ||
Line 132: | Line 87: | ||
</ | </ | ||
- | + | **Rootmacros** \\ | |
- | + | ||
- | + | ||
- | === Rootmacros | + | |
In order to execute rootmacros, the include paths need to be set.\\ | In order to execute rootmacros, the include paths need to be set.\\ | ||
This can be done automatically with a '' | This can be done automatically with a '' |
software/install.1751019560.txt.gz · Last modified: by himuser