# Root-config: command not found when trying to execute thisroot.sh

**URL:** <https://root-forum.cern.ch/t/root-config-command-not-found-when-trying-to-execute-thisroot-sh/56276>\
**Category:** Newbie\
**Created:** [September 4, 2023, 8:55pm UTC](https://root-forum.cern.ch/t/root-config-command-not-found-when-trying-to-execute-thisroot-sh/56276 "2023-09-04T20:55:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![staylor1484](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@staylor1484](https://root-forum.cern.ch/u/staylor1484)\
**Post date:** [September 4, 2023, 8:55pm UTC](https://root-forum.cern.ch/t/root-config-command-not-found-when-trying-to-execute-thisroot-sh/56276/1 "2023-09-04T20:55:04Z")

</div>

Hello,

I am trying to install and use ROOT on my Windows 10 laptop but am getting an error message when trying to execute “. /bin/thisroot.sh” It says “root-config: command not found”, however I have double checked that root-config is located in the same directory as thisroot.sh. I have looked at previous forums that have expressed that they have the same error message, however none of the solutions have helped. Any help would be appreciated!

Sam

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [September 5, 2023, 6:48am UTC](https://root-forum.cern.ch/t/root-config-command-not-found-when-trying-to-execute-thisroot-sh/56276/2 "2023-09-05T06:48:15Z")

</div>

Welcome to the ROOT Forum!  
Unless you are using bash in WSL, on Windows you must call `bin\thisroot.bat`

---

<div class="post-metadata">

**Author:** ![staylor1484](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@staylor1484](https://root-forum.cern.ch/u/staylor1484)\
**Post date:** [September 6, 2023, 2:26am UTC](https://root-forum.cern.ch/t/root-config-command-not-found-when-trying-to-execute-thisroot-sh/56276/3 "2023-09-06T02:26:13Z")

</div>

Hi bellenot,

Thank you for replying. I’ve tried that as well, but I get a different error:

```auto
@echo: command not found
rem: command not found
: command not found
rem: command not found
: command not found
bash: cd: /D: No such file or directory
bash: cd: /D: No such file or directory
: no such jobTH%
: no such jobAKE_PREFIX_PATH%
: no such jobTHONPATH%

```

Thank you,  
Sam

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [September 6, 2023, 6:44am UTC](https://root-forum.cern.ch/t/root-config-command-not-found-when-trying-to-execute-thisroot-sh/56276/4 "2023-09-06T06:44:34Z")

</div>

OK, so apparently you’re working in WSL. So how did you install ROOT? Which exact version (i.e. which tar file)?

---

<div class="post-metadata">

**Author:** ![staylor1484](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@staylor1484](https://root-forum.cern.ch/u/staylor1484)\
**Post date:** [September 6, 2023, 8:28pm UTC](https://root-forum.cern.ch/t/root-config-command-not-found-when-trying-to-execute-thisroot-sh/56276/5 "2023-09-06T20:28:12Z")

</div>

Hi bellenot,

I did the exact steps listed in the ‘Building ROOT from Source’ webpage. Not sure if that helps or not. I did not get any error messages when doing cmake, so I’m not sure what the problem is at this point.

Thanks  
Sam

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [September 6, 2023, 8:30pm UTC](https://root-forum.cern.ch/t/root-config-command-not-found-when-trying-to-execute-thisroot-sh/56276/6 "2023-09-06T20:30:13Z")

</div>

Can you confirm that you are working in WSL? And BTW, why didn’t you simply download a pre-built binary?

---

<div class="post-metadata">

**Author:** ![staylor1484](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/8797f3/32.png) [@staylor1484](https://root-forum.cern.ch/u/staylor1484)\
**Post date:** [September 12, 2023, 1:34am UTC](https://root-forum.cern.ch/t/root-config-command-not-found-when-trying-to-execute-thisroot-sh/56276/7 "2023-09-12T01:34:33Z")

</div>

Hi bellenot,

I had issues previously using a pre-built binary, so I tried to install from source. I tried again, and I was successfully able to install ROOT using the pre-built binary. Thank you for your help.

Thanks  
Sam
