Mac 的 cmake 安装程序无法创建/usr/bin 符号链接 [英] cmake installer for Mac fails to create /usr/bin symlinks
问题描述
尝试在 OS X 10.9.3 上安装 CMake cmake-2.8.12.2-Darwin64-universal.dmg我从 Application 文件夹中删除了旧版本,并删除了 usr/bin 中的 ccmake、cmake、cmake-gui 等.但是会得到Failed create symlink installation may be incomplete:/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.
如果有任何建议或问题,请告诉我.
Please let me know if any suggestion or question.
感谢您在我的问题上花费宝贵的时间.
Thank you for precious time on my question.
推荐答案
这也经常发生在我身上.
This tends to happen to me as well from time to time.
问题基本上是以前安装的符号链接在从应用程序中删除 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
中删除这些链接,然后重新运行安装程序.IIRC 至少是 cmake
、ccmake
、cmake-gui
、cpack
和 ctest
需要删除.最好的方法是从控制台执行 ls -l/usr/bin
并为所有指向旧 CMake 安装目录的链接执行 grep
.
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.
这篇关于Mac 的 cmake 安装程序无法创建/usr/bin 符号链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!