Skip to content

Instantly share code, notes, and snippets.

@klieret
Last active October 17, 2017 12:51
Show Gist options
  • Save klieret/77bece855bc64460be3b674feceade79 to your computer and use it in GitHub Desktop.
Save klieret/77bece855bc64460be3b674feceade79 to your computer and use it in GitHub Desktop.

Installation

Explanation on:

https://confluence.desy.de/display/BI/Software+SoftwareInstallation#SoftwareSoftwareInstallation-InstallationofCentralReleases

Do a full local installation.

  1. Open terminal, create new folder, change to new folder

     cd
     mkdir full_local_installation
     cd !$
    
  2. Get the prepare_belle2.sh script (replace <username> with the username you used for your desy account):

     wget --user <username> --ask-password --auth-no-challenge "https://stash.desy.de/projects/B2/repos/tools/browse/prepare_belle2.sh?raw" -O prepare_belle2.sh
    
  3. Make it executable.

     chmod a+x prepare_belle2.sh
    
  4. Run it!

     ./prepare_belle2.sh
    

You might be asked to install more software; type y to accept, enter you administrator password and wait till software is installed. At the end you should see:

All software that is required to build the Belle II software is now installed on your system.
  1. Get the tools repository.

     git clone https://<your username>@stash.desy.de/scm/b2/tools.git
    
  2. Execute the setup.

     source tools/setup_belle2
    
  3. Get the externals

     get_externals.sh
    

use the table to select your operating system and just choose the newest version from the list that pops up if you just run get_externals.sh

get_release.sh release-00-08-00 sl6

but choose proper release and operating system. Then do (fill in the correct release-...)

cd releases/release-..../
setuprel

if it asks you to get_externals.sh again with a specific version, just do it.

Do not run scons, just check if everything worked out directly with

basf2 --info

the tutorials are in <your installation>/releases/release-00-08-00/analysis/examples/tutorials/.

Starting again

At every startup you need to run:

source tools/setup_belle2
cd releases/release-..../
setuprel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment