Wie man ROOT aus dem Quellcode ohne sudo baut & installiert
Ich empfehle dies, um ROOT in $HOME/usr zu installieren.
Es basiert eng an den offiziellen Dokumenten zum Bauen von ROOT aus dem Quellcode.
Wenn Sie kein geeignetes Python zur Verfügung haben, möchten Sie vielleicht
build_root.sh
-Dpyroot=OFF -Dpyroot_experimental=OFFfür den ersten cmake-Befehl verwenden.
git clone –branch v6-25-02 –depth=1 https://github.com/root-project/root.git root_src
build_root.sh
git clone --branch latest-stable --depth=1 https://github.com/root-project/root.git root_src
mkdir root_build && cd root_build
cmake -DCMAKE_INSTALL_PREFIX=$HOME/usr ../root_src
cmake --build . -- install -j$(nproc)Fügen Sie dann zu Ihrer ~/.bashrc oder ähnlichem hinzu:
thisroot_env.sh
source $HOME/usr/bin/thisroot.shIf this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow