Project

General

Profile

Installation instructions » History » Version 2

Version 1 (Wesley Ketchum, 12/03/2018 09:40 AM) → Version 2/32 (Tyler Boone, 12/13/2018 04:02 PM)

h1. Installation instructions

This will be filled out in more detail with time, but for the moment this should get one started:

1. Login to the desired machine using your own account.
<pre>ssh ron@sbnd-daq32.fnal.gov</pre>

2. Setup the common artdaq products area. For the DAB teststand, this is currently:
<pre>source /software/products/setup</pre>

3. Setup the version of sbndaq we are based. To see a list of the different available versions, use
<pre>
Currently, this is:
ups list -aK+ sbndaq
</pre>
It's recommended you use the latest available version with e15:prof as the option. Then, to set up, use:
<pre>
setup sbndaq v#_##_## v0_01_01 -qe15:prof
</pre>
Note, if you must, you can use the 'icarus' or 'sbnd' qualifiers.

If you just want to run, that's it!

But, if you need to build/install, then continue with setting up an MRB area:

4. Setup necessary environment variable and create the mrb area in a new directory of your choosing:
<pre>
setup mrb
mkdir <your_working_area>
cd <your_working_area>
export MRB_PROJECT=sbndaq
mrb newDev
source localProducts_*/setup
</pre>

5. Pull down and build the necessary repositories using mrb like so:
<pre>
cd $MRB_SOURCE
mrb g <repo name>
</pre>
Repository names right now are:
<pre>
icarus-artdaq-base
sbndaq-artdaq-core
sbndaq-artdaq
sbndaq
</pre>
To build, do
<pre>
cd $MRB_BUILDDIR
mrbsetenv
mrb i -j32
mrbslp
</pre>

6. To rebuild, you will often only need to do:
<pre>
cd $MRB_BUILDDIR
make -j32 install
</pre>

But, if you add another repository to your srcs area, it's usually best to rebuild everything:
<pre>
cd $MRB_BUILDDIR
mrb z
mrbsetenv
mrb i -j32
mrbslp
</pre>

7. There's often a bug to put put things into the write-access repository. In the appropriate srcs area, you can do this:
<pre>
git remote set-url origin ssh://p-sbndaq@cdcvs.fnal.gov/cvs/projects/sbndaq-artdaq
</pre>

Of course, replace @sbndaq-artdaq@ with the right repository.