# The thisroot.sh misbahes in ROOT 6.34+

**URL:** <https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513>\
**Category:** ROOT\
**Created:** [December 4, 2025, 8:45am UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513 "2025-12-04T08:45:25Z")\
**Posts on this page:** 13\
**Page:** 1

<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:** [December 4, 2025, 8:45am UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513/1 "2025-12-04T08:45:26Z")

</div>

While playing with [some reported problem](https://root-forum.cern.ch/t/pyroot-does-not-work-anymore/64481), I now (accidentally) noticed that the “`thisroot.sh`” is **terribly screwed** starting from ROOT 6.34 (ROOT 6.32 and older are fine).

The “`LD_LIBRARY_PATH`”, “`DYLD_LIBRARY_PATH`”, “`SHLIB_PATH`”, “`LIBPATH`”, and “`PYTHONPATH`” are not properly managed:

```bash
[...]$ diff /.../root_v6.34.10/bin/thisroot.sh /.../root_v6.32.20/bin/thisroot.sh
42d41
< drop_from_path "$LD_LIBRARY_PATH" "${old_rootsys}/lib/root"
47d45
< drop_from_path "$DYLD_LIBRARY_PATH" "${old_rootsys}/lib/root"
52d49
< drop_from_path "$SHLIB_PATH" "${old_rootsys}/lib/root"
57d53
< drop_from_path "$LIBPATH" "${old_rootsys}/lib/root"
62d57
< drop_from_path "$PYTHONPATH" "${old_rootsys}/lib/root"

```

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [December 4, 2025, 4:40pm UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513/2 "2025-12-04T16:40:03Z")

</div>

> is **terribly screwed** starting from ROOT 6.34 (ROOT 6.32 and older are fine).

In what sense?

```auto
42d41
< drop_from_path "$LD_LIBRARY_PATH" "${old_rootsys}/lib/root"

```

those new lines are meant to handle the case where ROOT was build/installed with the `gnuinstall=ON` See commit 8e196e4993efcc3fedc84125da4816e94f953a41.

They should be (they are as far as I can tell) in addition to the pre-existing `drop_from_path` calls.

---

<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:** [December 4, 2025, 6:33pm UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513/3 "2025-12-04T18:33:19Z")

</div>

Example:

```bash
[...]$ echo $PYTHONPATH

[...]$ source /.../root_v6.34.10/bin/thisroot.sh
[...]$ source /.../root_v6.34.10/bin/thisroot.sh
[...]$ source /.../root_v6.34.10/bin/thisroot.sh
[...]$ echo $PYTHONPATH
/.../root_v6.34.10/lib:/.../root_v6.34.10/lib:/.../root_v6.34.10/lib

```

My guess is that all these offending lines should be changed into (just test it this time, before you push it):  
`drop_from_path "$newpath" "${old_rootsys}/lib/root"`

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [December 4, 2025, 6:53pm UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513/4 "2025-12-04T18:53:52Z")

</div>

Indeed you are right.

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [December 4, 2025, 7:24pm UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513/5 "2025-12-04T19:24:31Z")

</div>

See [thisroot.sh no longer remove previous version from the paths · Issue #20643 · root-project/root · GitHub](https://github.com/root-project/root/issues/20643) and [Fix thisroot.sh to properly remove previous ROOT version from paths by Copilot · Pull Request #20645 · root-project/root · GitHub](https://github.com/root-project/root/pull/20645)

---

<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:** [December 5, 2025, 8:41am UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513/6 "2025-12-05T08:41:11Z")

</div>

There is another problem related to Jupyter.

Up to (and including) ROOT 6.34, you define “`JUPYTER_CONFIG_DIR`”, but you do not care about “`JUPYTER_CONFIG_PATH`” (which may come from a newer ROOT version).

From ROOT 6.36, you define “`JUPYTER_CONFIG_PATH`”, but you do not care about “`JUPYTER_CONFIG_DIR`” (which may come from an older ROOT version).

This creates a problem when one switches between versions, e.g.:  
`source /.../root_v6.34.10/bin/thisroot.sh`  
`source /.../root_v6.36.06/bin/thisroot.sh`  
One then has:  
`JUPYTER_CONFIG_DIR="/.../root_v6.34.10/etc/notebook"`  
`JUPYTER_CONFIG_PATH="/.../root_v6.36.06/etc/notebook"`

It seems to me that you should fix it in ROOT 6.34+, so that, even if you do not define some variable, it should try to “`drop_from_path`” any possible “`old_rootsys`” entries from another version (older or newer).

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [December 8, 2025, 8:24am UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513/7 "2025-12-08T08:24:47Z")

</div>

Thanks for pointing out. Here PRs:  
[[thisroot] remove potential leftover paths from previous ROOT versions by ferdymercury · Pull Request #20653 · root-project/root · GitHub](https://github.com/root-project/root/pull/20653) (master and BP to 6.36 and 6.38)  
[[6.32][thisroot] prevent leftover paths from future ROOT versions by ferdymercury · Pull Request #20654 · root-project/root · GitHub](https://github.com/root-project/root/pull/20654) (just for 6.32 since 6.34 is EOL)

---

<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:** [December 8, 2025, 12:05pm UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513/8 "2025-12-08T12:05:27Z")

</div>

> [@ferhue](#):
>
> (just for 6.32 since 6.34 is EOL)

I’m not sure if you ever plan to release ROOT 6.34.12, but ROOT 6.34 is the last version where the “`JUPYTER_CONFIG_DIR`” environment variable is used, so it might be a good idea to add a fix to the [`v6-34-00-patches`](https://github.com/root-project/root/tree/v6-34-00-patches) branch as well.

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [December 8, 2025, 12:19pm UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513/9 "2025-12-08T12:19:01Z")

</div>

> [@Wile\_E\_Coyote](#):
>
> if you ever plan to release ROOT 6.34.12

From [ROOT 6.36.00-rc1 is out!](https://root-forum.cern.ch/t/root-6-36-00-rc1-is-out/63436)  
I read that:  
`Patch releases of 6.34 will be provided until June 30th 2025.`

Also shown in the graph:  
[![](https://root.cern/assets/images/release_and_support_schedule.png) ](https://root.cern/assets/images/release_and_support_schedule.png)

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [December 8, 2025, 2:26pm UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513/10 "2025-12-08T14:26:41Z")

</div>

Nothing to add to what is said above. Perhaps, just for info, the link to the list of ROOT releases, that includes the graph above: [Releases - ROOT](https://root.cern/install/all_releases/)

---

<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:** [December 8, 2025, 7:13pm UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513/11 "2025-12-08T19:13:42Z")

</div>

For some experiments, [ROOT 6.34 is the last version they can use](https://root-forum.cern.ch/t/odbc-and-mysql-connectivity-with-root-6-36-and-beyond/64065); therefore, you may want to reconsider it.

---

<div class="post-metadata">

**Author:** ![ferhue](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ferhue/32/29462_2.png) [@ferhue](https://root-forum.cern.ch/u/ferhue)\
**Post date:** [December 9, 2025, 7:43pm UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513/12 "2025-12-09T19:43:52Z")

</div>

> [@Wile\_E\_Coyote](#):
>
> you may want to reconsider it.

Merged [[6.34][FP][core] Remove potential leftover paths from future ROOT versions by ferdymercury · Pull Request #20671 · root-project/root · GitHub](https://github.com/root-project/root/pull/20671)

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [December 23, 2025, 7:44pm UTC](https://root-forum.cern.ch/t/the-thisroot-sh-misbahes-in-root-6-34/64513/13 "2025-12-23T19:44:02Z")

</div>

Closed on December 23, 2025, 7:44pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
