# Installation of ROOT to a user-defined prefix results in broken libraries for external packages (R, cfitsio)

**URL:** <https://root-forum.cern.ch/t/installation-of-root-to-a-user-defined-prefix-results-in-broken-libraries-for-external-packages-r-cfitsio/39361>\
**Category:** ROOT\
**Tags:** installation\
**Created:** [May 11, 2020, 3:32pm UTC](https://root-forum.cern.ch/t/installation-of-root-to-a-user-defined-prefix-results-in-broken-libraries-for-external-packages-r-cfitsio/39361 "2020-05-11T15:32:59Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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 11, 2020, 4:00pm UTC](https://root-forum.cern.ch/t/installation-of-root-to-a-user-defined-prefix-results-in-broken-libraries-for-external-packages-r-cfitsio/39361/6 "2020-05-11T16:00:19Z")

</div>

So, try:  
`export LD_LIBRARY_PATH="/usr/local/cfitsio-3.47/lib64:${LD_LIBRARY_PATH}"`

---

_[View the full topic](https://root-forum.cern.ch/t/installation-of-root-to-a-user-defined-prefix-results-in-broken-libraries-for-external-packages-r-cfitsio/39361)._
