cmake installer for Mac fails to create /usr/bin symlinks

cmake, command, macos

Solution

This tends to happen to me as well from time to time.

The problem is basically that the symlinks from the previous installation are not cleaned up when removing CMake from Applications and now the installer has trouble updating them to the new version.

The easiest fix here is to manually remove those links from `/usr/bin` and re-run the installer. IIRC it's at least `cmake`, `ccmake`, `cmake-gui`, `cpack` and `ctest` that need removing. Best way is to do a `ls -l /usr/bin` from the console and `grep` for all the links pointing to the old CMake installation directory.

Problem

Try to install CMake cmake-2.8.12.2-Darwin64-universal.dmg on OS X 10.9.3 I removed the old version from Application folder and delete ccmake, cmake, cmake-gui etc in usr/bin. But get "Failed create symlink installation may be incomplete: /usr/bin/cpack" and other error messages. Please let me know if any suggestion or question. Thank you for precious time on my question.

Original source