# Path issue?

**URL:** <https://root-forum.cern.ch/t/path-issue/60466>\
**Category:** Newbie\
**Created:** [August 11, 2024, 11:18am UTC](https://root-forum.cern.ch/t/path-issue/60466 "2024-08-11T11:18:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Salma](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@Salma](https://root-forum.cern.ch/u/Salma)\
**Post date:** [August 11, 2024, 11:18am UTC](https://root-forum.cern.ch/t/path-issue/60466/1 "2024-08-11T11:18:24Z")

</div>

Hi,  
I am new using LINUX system and ROOT CERN.  
The command ‘echo $PATH’ gives :  
/home/salma/salma/installdir/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/salma/salma/root\_src/math/mathmore/inc  
However, my .bashrc contains :  
source /home/salma/salma/installdir/bin/thisroot.sh  
export PATH=“$PATH:/home/salma/salma/root\_src/math/mathmore/inc”

I might have a PATH problem ?  
In fact, I freshly installed Ubuntu 24.04 LTS and built root from source following the site.  
Also, I should note that first, I have installed root via SNAP then I removed it because I had error messages (same as shown down) and others.  
I think that I succeeded to removed it via sudo snap remove. Because 'snap list ’ gives only core and hello-world.

Root works well except for macros with such include : #include \<Math/Interpolator.h\>  
It gives this message with error :  
root [0] .L analyse.C+  
Info in TUnixSystem::ACLiC: creating shared library /home/salma/salma/wavecatcher/./analyse\_C.so  
In file included from input\_line\_9:6:  
././analyse.C:21:11: fatal error: ‘Math/Interpolator.h’ file not found  
#include \<Math/Interpolator.h\>  
^ ~~~~~~~~~~~~~~~~~~~~  
Error in : Executing ‘/home/salma/salma/installdir/bin/rootcling -v0 “–lib-list-prefix=/home/salma/salma/wavecatcher/analyse\_C\_ACLiC\_map” -f “/home/salma/salma/wavecatcher/analyse\_C\_ACLiC\_dict.cxx” -I$ROOTSYS/include -I"/home/salma/salma/installdir/etc/" -I"/home/salma/salma/installdir/etc//cling" -I"/home/salma/salma/installdir/etc//cling/plugins/include" -I"/home/salma/salma/installdir/include/" -I"/home/salma/salma/installdir/include" -D\_\_ACLIC\_\_ “/home/salma/salma/wavecatcher/./analyse.C” “/home/salma/salma/wavecatcher/analyse\_C\_ACLiC\_linkdef.h”’ failed!

I have tried this in .profile #added at the end but didnt work :  
PATH=“$(printf “%s” “$PATH” | awk -v RS=‘:’ ‘!a[$1]++ {if (NR \> 1) printf RS; printf $1}’)”  
And  
In the macro, changing \<\> with “” in the include doesn’t work  
Thanks for help !

* * *

ROOT Version:\_ 6.32.02  
Built for linuxx8664gcc |  
c++ 13.2.0

* * *

---

<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:** [August 11, 2024, 2:36pm UTC](https://root-forum.cern.ch/t/path-issue/60466/2 "2024-08-11T14:36:44Z")

</div>

Hi,

Thanks for the post and welcome to the ROOT Community!

I think you _might_ have an installation or include path issue.  
Could you share with us how you configured your ROOT installation?

Cheers,  
Danilo

---

<div class="post-metadata">

**Author:** ![Salma](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@Salma](https://root-forum.cern.ch/u/Salma)\
**Post date:** [August 11, 2024, 5:24pm UTC](https://root-forum.cern.ch/t/path-issue/60466/3 "2024-08-11T17:24:31Z")

</div>

Hello,  
Thank you for your rapid response.

1. I have created in home/salma/salma three folders root\_src, sourcedir and installdir.
2. I cloned the latest stable version in root\_src directory.  
3)Then, in the builddir, I have executed the command :  
cmake -DCMAKE\_INSTALL\_PREFIX=home/salma/salma/installdir home/salma/salma/root\_src  
Finally, I have sourced it with source home/salma/salma/installir/bin/thisroot.sh  
As said before, I have added to the ./bashrc these two lines :  
source /home/salma/salma/installdir/bin/thisroot.sh  
export PATH=“$PATH:/home/salma/salma/root\_src/math/mathmore/inc”  
In conclusion, no error message appears during the installation process. However, if I add an include with a path like \<Math/Interpolator.h\> in a macro working perfectly before in same terminal, it gives fatal error like:  
././macro.C:20:11: fatal error: ‘Math/Interpolator.h’ file not found  
#include \<Math/Interpolator.h\>  
Thanks,

---

<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:** [August 11, 2024, 7:37pm UTC](https://root-forum.cern.ch/t/path-issue/60466/4 "2024-08-11T19:37:09Z")

</div>

Dear Salma,

Thanks for sharing the complete information.  
Could you try to configure adding the `-Dmathmore=ON` flag? For example:  
`cmake -Dmathmore=ON -DCMAKE_INSTALL_PREFIX=home/salma/salma/installdir home/salma/salma/root_src`  
and re-run the compilation and installation?

Best,  
Danilo

---

<div class="post-metadata">

**Author:** ![Salma](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@Salma](https://root-forum.cern.ch/u/Salma)\
**Post date:** [August 12, 2024, 1:19pm UTC](https://root-forum.cern.ch/t/path-issue/60466/5 "2024-08-12T13:19:34Z")

</div>

Hi,  
I re-configured root in the builddir using  
`cmake -Dmathmore=ON -DCMAKE_INSTALL_PREFIX=../installdir ../root_src`  
and re-installed it and sourced it.  
It works perfectly now and no error message with the include.  
Maybe, I had rather an installation problem.  
Since, before reinstalling, I turnned ON the mathmore with the command ‘’‘ccmake . ‘’’ in the builtdir after installing the dependencie : cmake-curses-gui but no issue.  
In the CMAKE\_INVOKE, I had just a path but now a full instruction: /usr/bin/cmake -DCMAKE\_INSTALL\_PREFIX=“…/installdir” -Dmathmore=“ON” /home/salma/sal  
Thanks a lot for help Danilo,  
Salma

---

<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:** [August 13, 2024, 5:00am UTC](https://root-forum.cern.ch/t/path-issue/60466/6 "2024-08-13T05:00:14Z")

</div>

Thanks for reporting the proposal works for you! Hopefully someone else can benefit from it, too!
