Project

General

Profile

How to set up lar1ndcode offiste » History » Version 3

Andrzej Szelc, 01/26/2016 05:11 AM

1 3 Andrzej Szelc
h1. How to set up lar1ndcode offsite
2 1 Corey Adams
3 1 Corey Adams
To get lar1ndcode offsite, first you must get larsoft offsite. Use the official pullProducts scripts whenever possible!
4 1 Corey Adams
5 1 Corey Adams
Go to http://scisoft.fnal.gov/scisoft/bundles/larsoft/ to see the larsoft versions you can get. Choose the one that matches the lar1ndcode version you want to use.
6 1 Corey Adams
7 1 Corey Adams
The html pages for each release (http://scisoft.fnal.gov/scisoft/bundles/larsoft/v04_20_00/larsoft-v04_20_00.html, for example) give instructions for how to download. Avoid building from scratch if you can!
8 1 Corey Adams
9 1 Corey Adams
Once larsoft is installed, the best way to get lar1ndcode is to set up a larsoft development directory and do an "mrb g lar1ndcode" inside of the srcs area.
10 1 Corey Adams
11 1 Corey Adams
We will work on lar1ndcode incorporation to scisoft as it becomes necessary.
12 1 Corey Adams
13 1 Corey Adams
For questions on this, contact the software release manager (corey.adams@yale.edu)
14 2 Andrzej Szelc
15 2 Andrzej Szelc
-- this is an example session on an offsite machine on how to setup a set of code with version v03_08_02
16 2 Andrzej Szelc
-- I have seen a small problem with this not findin -lFilters. Send me an email if you see this problem. Andrzej
17 2 Andrzej Szelc
<pre>
18 2 Andrzej Szelc
$  mkdir larsoft_v03_08_02
19 2 Andrzej Szelc
$  source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setup
20 2 Andrzej Szelc
$  setup larsoft v03_08_02 -q e6:prof
21 2 Andrzej Szelc
$  export MRB_PROJECT="larsoft"
22 2 Andrzej Szelc
$  cd larsoft_v03_08_02/
23 2 Andrzej Szelc
$  setup mrb
24 2 Andrzej Szelc
$  mrb newDev
25 2 Andrzej Szelc
$  source localProducts_larsoft_v03_08_02_e6_prof/setup 
26 2 Andrzej Szelc
$  cd srcs/
27 2 Andrzej Szelc
$  mrb g -t v03_08_02 lar1ndcode   // this should work. Otherwise do git checkout below:
28 2 Andrzej Szelc
$  cd lar1ndcode/      
29 2 Andrzej Szelc
$  git branch -a         //optional: check you are on the correct branch
30 2 Andrzej Szelc
$  git checkout tags/v03_08_02  //optional: if -t didn't work above.
31 2 Andrzej Szelc
$  git branch -a
32 2 Andrzej Szelc
$  mrb g -t LARSOFT_SUITE_v03_08_02 larsim
33 2 Andrzej Szelc
$  cd larsim
34 2 Andrzej Szelc
$  git branch -a   //optional: check you are on the correct branch
35 2 Andrzej Szelc
$  cd $MRB_BUILDDIR 
36 2 Andrzej Szelc
$  mrbsetenv
37 2 Andrzej Szelc
$  mrb i -j8
38 2 Andrzej Szelc
</pre>
39 2 Andrzej Szelc
40 2 Andrzej Szelc
41 2 Andrzej Szelc
-- this is an example session on an offsite machine on how to setup a set of code with version v04_24_00
42 2 Andrzej Szelc
-- this is a work in progress, does not work yet
43 2 Andrzej Szelc
<pre>
44 2 Andrzej Szelc
$  mkdir larsoft_v04_24_00
45 2 Andrzej Szelc
$  source /cvmfs/fermilab.opensciencegrid.org/products/larsoft/setup
46 2 Andrzej Szelc
$  setup larsoft v04_24_00 -q e7:prof
47 2 Andrzej Szelc
$  export MRB_PROJECT="larsoft"
48 2 Andrzej Szelc
$  cd larsoft_v04_24_00/
49 2 Andrzej Szelc
$  setup mrb
50 2 Andrzej Szelc
$  mrb newDev
51 2 Andrzej Szelc
$  source localProducts_larsoft_v04_24_00_e7_prof/setup 
52 2 Andrzej Szelc
$  cd srcs/
53 2 Andrzej Szelc
$  mrb g -t v04_24_00 lar1ndcode   // this should work. Otherwise do git checkout below:
54 2 Andrzej Szelc
$  cd lar1ndcode/      
55 2 Andrzej Szelc
$  git branch -a         //optional: check you are on the correct branch
56 2 Andrzej Szelc
$  git checkout tags/v04_24_00  //optional: if -t didn't work above.
57 2 Andrzej Szelc
$  git branch -a
58 2 Andrzej Szelc
$  mrb g -t LARSOFT_SUITE_v04_24_00 larsim
59 2 Andrzej Szelc
$  cd larsim
60 2 Andrzej Szelc
$  git branch -a   //optional: check you are on the correct branch
61 2 Andrzej Szelc
$  cd $MRB_BUILDDIR 
62 2 Andrzej Szelc
$  mrbsetenv
63 2 Andrzej Szelc
$  mrb i -j8
64 2 Andrzej Szelc
</pre>