RootBuild: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
</ol> | </ol> | ||
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.). | 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.). | ||
[[Category:Computing]] | |||
[[Category:Code]] | |||
[[Category:CodeManagement]] |
Latest revision as of 18:14, 13 September 2021
From Chris Green 10/2019. Assuming you wish to build a ROOT UPS product in a temporary place and then install it elsewhere:
- Ensure the relevant product stack is installed and accessible via PRODUCTS.
- Make a temporary products area: mkdir product-tmp cd product-tmp
- Initialize it from an existing UPS area: tar -C ${PRODUCTS%%:*} -c .upsfiles | tar xv
- Obtain the correct source tarball: curl -O -J -L --fail https://scisoft.fnal.gov/scisoft/packages/root/v6_16_00/root-6.16.00-source.tar.bz2 | \ tar xj
- ...and build: ./root/v6_16_00/build_root.sh e17 debug tar
- 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.).