Not able to upgrade cmake on Orin

I tried the following post but getting errors with it.

CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly

This version

You may try this script (was for cmake-3.25.1, should be straight forward to adapt for 3.25.3).

Thanks for the link, I get the same error after following it. @Honey_Patouceul

What gives:

echo $PATH

/usr/local/bin/cmake --version

Hmm thats weird, after running

/usr/local/bin/cmake --version

I don’t get that error anymore. I did restart the terminal though, that might have fixed it.

Thank you for the help!