cmake安装程序Mac无法创建/ usr / bin符号链接

问题描述:

尝试在OS X 10.9.3
上安装CMake cmake-2.8.12.2-Darwin64-universal.dmg我从应用程序文件夹中删除旧版本,删除usr / bin中的ccmake,cmake,cmake-gui等。
但是得到失败的创建符号链接安装可能不完整:/ usr / bin / cpack和其他错误消息。

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.

请让我知道任何建议或

感谢您对我的问题的宝贵时间。

Thank you for precious time on my question.

这个问题基本上是,从应用程序中删除CMake时,上一次安装的符号链接不会被清除,

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.

最简单的解决方法是从 / usr / bin >手动删除这些链接。 code>并重新运行安装程序。 IIRC它至少 cmake ccmake cmake-gui cpack ctest 。最好的方法是从控制台执行 ls -l / usr / bin ,并为所有指向的链接执行 grep 旧的CMake安装目录。

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.