Homebrew 安装 gdb,binutils 出现符号链接错误

Homebrew 安装 gdb,binutils 出现符号链接错误

我正在尝试通过 Homebrew 在 OSX Mavericks 上通过命令安装 GDB brew install homebrew/dupes/gdb。安装过程中弹出以下错误消息:

gdb requires special privileges to access Mach ports.
You will need to codesign the binary. For instructions, see:

  http://sourceware.org/gdb/wiki/BuildingOnDarwin
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink share/info/bfd.info
Target /usr/local/share/info/bfd.info
is a symlink belonging to binutils. You can unlink it:
  brew unlink binutils

To force the link and overwrite all conflicting files:
  brew link --overwrite gdb

To list all files that would be deleted:
  brew link --overwrite --dry-run gdb

Possible conflicting files are:
/usr/local/share/info/bfd.info -> /usr/local/Cellar/binutils/2.24/share/info/bfd.info
/usr/local/share/info/configure.info -> /usr/local/Cellar/binutils/2.24/share/info/configure.info
==> Summary

答案1

该消息询问是否brew应使用从 GDB 安装的文档覆盖从binutils安装的文档,是的,覆盖这些文档是安全的。覆盖 中的系统链接通常是安全的brew,如果它破坏了某些东西,您可以轻松地重新安装该软件包。

相关内容