Incompatible libMinuit in ROOT and HEAsoft

Hi all,

I have the following problem, and maybe somebody else has already solved it:
I have a setup which uses ROOT and NASA’s HEASoft library. Unfortunately both contain a version of libMinuit.so, which are not compatible with each other.
Thus depending on how I setup the path sequence in my LD_LIBRARY_PATH up, either ROOT or HEAsoft tries to load an incompatible library.

How I work around this currently is to source different LD_LIBRARY_PATH depending on which programs I use.

Is there any other, better way to solve this problem?

Thanks,
Andreas

What concerns ROOT you could configure it adding “–enable-explicitlink --enable-rpath --enable-soversion”. I don’t know HEASoft but maybe there are similar flags available.