build and setup LArLite - twongjirad/LArLiteSoftCookBook GitHub Wiki
Luckily, Kazu, has tried to make this as simple as possible.
These instructions are for the GPVM.
LArLite essentially only needs ROOT. On the GPVM you can setup a version of ROOT using UPS. setup root [version of root] [flavor of version].
However, on the GPVMs, our typical goal is to extract LArSoft data products into larlite, so that we may abscond with them to our laptops and apply to them our various manipulations/tortures. So it makes sense first to setup a uboone code environment which which we will be using larlite -- to keep the version of ROOT compatible.
So...
Building
-
go to some directory you want to put the larlite repository. typically /uboone/app/users/[your-username].
-
clone the repository
git clone https://github.com/larlight/larlite.git
-
go into the larlite directory
cd larlite
-
configure larlite
source config/setup.sh
-
build (optional with 4 cores using the -j4 argument)
make -j4
Setup existing larlite build
-
go to your larlite folder
-
setup larlite (i.e. put folders containing binaries and libraries into your PATH and LD_LIBRARY_PATH; setup LARLITE environment variables)
source config/setup.sh