I was trying to build one project with cmake but turned out that root doesn't have it (admin user had it). After installing it on root they have now different versions. I thought that root has only more access privileges than normal user and they have same files. Why is so?
admin@raspberrypi:/home/pi/profinet/p-net $ cmake --version
cmake version 3.26.0
admin@raspberrypi:/home/pi/profinet/p-net $ sudo su
root@raspberrypi:/home/pi/profinet/p-net# cmake --version
cmake version 3.18.4
which cmake
may give you some more detailswhich cmake
(try it as user then root) will probably shed some light on that.admin@raspberrypi:~ $ which cmake /usr/bin/cmake admin@raspberrypi:~ $ sudo su root@raspberrypi:/home/admin# which cmake /usr/bin/cmake root@raspberrypi:/home/admin# cmake --version cmake version 3.18.4 root@raspberrypi:/home/admin# exit exit admin@raspberrypi:~ $ cmake --version cmake version 3.18.4
Pretty strange now they look the same :(