# Issues when building ROOT with R statistics (ROOTR)

**URL:** <https://root-forum.cern.ch/t/issues-when-building-root-with-r-statistics-rootr/39267>\
**Category:** ROOT\
**Created:** [May 5, 2020, 3:31pm UTC](https://root-forum.cern.ch/t/issues-when-building-root-with-r-statistics-rootr/39267 "2020-05-05T15:31:34Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [May 6, 2020, 6:50pm UTC](https://root-forum.cern.ch/t/issues-when-building-root-with-r-statistics-rootr/39267/9 "2020-05-06T18:50:47Z")

</div>

@Axel Out of curiosity, I executed in the "`<builddir>`”:  
`cmake -DCMAKE_INSTALL_PREFIX=/tmp/root -P cmake_install.cmake`  
and then I found that three libraries in “`ROOTSYS=/tmp/root`” are broken.

```bash
ldd ${ROOTSYS}/lib/libRInterface.so
ldd ${ROOTSYS}/lib/libRMVA.so
ldd ${ROOTSYS}/lib/libRtools.so

```

report:  
`libRInside.so => not found`  
while for the same libraries in “`ROOTSYS=<builddir>`”, I get:  
`libRInside.so => /usr/lib/R/site-library/RInside/lib/libRInside.so`

Manually executing:  
`export LD_LIBRARY_PATH="/usr/lib/R/site-library/RInside/lib:${LD_LIBRARY_PATH}"`  
fixes the problem and then the R tutorials work also when “`ROOTSYS=/tmp/root`”.

---

_[View the full topic](https://root-forum.cern.ch/t/issues-when-building-root-with-r-statistics-rootr/39267)._
