RootBuild

From Mu2eWiki
Jump to navigation Jump to search

From Chris Green 10/2019. Assuming you wish to build a ROOT UPS product in a temporary place and then install it elsewhere:

  1. Ensure the relevant product stack is installed and accessible via PRODUCTS.
  2. Make a temporary products area:
  3. mkdir product-tmp cd product-tmp
  4. Initialize it from an existing UPS area:
  5. tar -C ${PRODUCTS%%:*} -c .upsfiles | tar xv
  6. Obtain the correct source tarball:
  7. curl -O -J -L --fail https://scisoft.fnal.gov/scisoft/packages/root/v6_16_00/root-6.16.00-source.tar.bz2 | \ tar xj
  8. ...and build:
  9. ./root/v6_16_00/build_root.sh e17 debug tar
  10. Unwind the tarball in the location from which you wish to use it (removing the existing build first if necessary) and then remove product-tmp.

Building in a temporary area and then installing the tarball will take care of removing intermediate build products which are not part of the final build (object files, etc., etc.).