Root-config commend not found

Trying to install pyroot, yet i stacked at this part.

  1. Add bin/ to PATH and lib/ to LD_LIBRARY_PATH. For the sh shell family do:
    . bin/thisroot.sh

My thisroot.sh is in config. So i added the bottom line of ./.bashrc

cd ../root
. config/thisroot.sh 
cd

there was bin/ instead of config, but i got error that they couldnt find the file thisroot.sh so, i changed it to where it is, but now i am getting root-config commend not found error. How can i solve this?

Hello,

How did you install ROOT? Did you build from sources? Did you download a binary version?

root-config is not found because your environment is not configured correctly. As explained here:

https://root.cern.ch/building-root

You need to source the thisroot.sh that is installed in bin/, either in your build directory or installation directory. I believe you are sourcing the thisroot.sh that is in the ROOT source directory, inside config.

Cheers,

Enric