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

https://github.com/Kitware/CMake/releases/download/v3.25.3/cmake-3.25.3-Linux-aarch64.tar.gz

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

@Honey_Patouceul
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!