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 12:03] – himuser | software:install [2025/06/27 14:12] (current) – himuser | ||
---|---|---|---|
Line 27: | Line 27: | ||
</ | </ | ||
- | Once you type that, you should be able to see all groups your user is in, so the ' | + | Once you type that, you should be able to see all groups your user is in, so the '' |
- | **Starting the container and test the simulation**\\ | + | **Starting the container and testing |
- | Now you need to start the container so you can run the full Geant4 simulation. Write: | + | Now you need to start the container so you can run the full primasoft. Write: |
< | < | ||
$ cd primasoft | $ cd primasoft | ||
Line 61: | Line 61: | ||
</ | </ | ||
- | The last line means your are already inside the container under the ubuntu username. | + | The last line means your are already inside the container under the '' |
== Set the environment == | == Set the environment == | ||
Line 67: | Line 67: | ||
< | < | ||
source ./setenv.sh | source ./setenv.sh | ||
+ | cd utils/ | ||
+ | make | ||
+ | cd ~/ | ||
+ | mkdir lib | ||
+ | make | ||
</ | </ | ||
- | + | == Compile geant4 simulation == | |
- | FAIRsoft should be installed (see [[https:// | + | |
- | Or follow this description: | + | |
- | + | ||
- | **Install the dependencies**\\ | + | |
- | Debian, Ubuntu and other Debian based systems (64bit): | + | |
- | < | + | |
- | $ apt-get install | + | |
- | 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**\\ | + | |
- | 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. | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | == Switch to the May18p1 tag: == | + | |
- | < | + | |
- | $ cd fairsoft_may18 | + | |
- | $ git checkout tags/ | + | |
- | </ | + | |
- | + | ||
- | + | ||
- | **Launch the ./ | + | |
- | + | ||
- | < | + | |
- | #export PYTHIA8_LOCATION=" | + | |
- | export PYTHIA8_LOCATION=" | + | |
- | + | ||
- | #export GEANT4_LOCATION=" | + | |
- | export GEANT4_LOCATION=" | + | |
- | </ | + | |
- | ))**\\ | + | |
- | 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: | + | |
- | < | + | |
- | **** 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 === | + | |
- | + | ||
- | < | + | |
- | git clone agmaas@bwec-fileserver:/ | + | |
- | </ | + | |
- | + | ||
- | since 2020: | + | |
- | < | + | |
- | 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 179: | 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.1751025781.txt.gz · Last modified: by himuser