I'm having a strange problem with an Ubuntu 12.04 server:
hithwen@ip:~$ cmake --version
cmake version 2.8.12.2
buildbot@ip:~$ cmake --version
cmake version 2.8.7
So, different users are executing different versions, ok, let's see where are they located:
hithwen@ip:~$ which cmake
/usr/local/bin/cmake
buildbot@ip:~$ which cmake
/usr/bin/cmake
So it seems I need to fix buildbot user's path but:
buildbot@ip:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
/usr/local/bin
is already before /usr/bin
, how can I solve this?
I cannot uninstall the cmake
package because other packages depend on it and I cannot upgrade it via repositories because last version is not available in 12.04 repos.
Best Answer
The explanation was given by the
hash
command:So I did:
Why is it not finding
/usr/local/bin/cmake
?So this user didn't have permission to access that file.
I reinstalled
cmake
and that fixed it.