【问题标题】:Two errors during GDB installing on Mac El Capitan在 Mac El Capitan 上安装 GDB 时出现两个错误
【发布时间】:2016-02-02 20:13:26
【问题描述】:

我的 mac 版本是 El Capitan 10.11.2。

我用macports安装了gdb(其实是ggdb)。信息如下:(我之前已经安装了gdb,这样做是因为我只是确保我安装了gdb。)

$ sudo port install gdb
--->  Computing dependencies for gdb
--->  Cleaning gdb
--->  Scanning binaries for linking errors
--->  No broken files found.

我已经创建了我的 gdb 密钥证书,命名为 ggdb。但是当我尝试使用终端通过键入以下命令来对我的 ggdb 证书进行代码签名时:

codesign -s ggdb /opt/local/bin/ggdb

出了点问题!!无论我是否退出taskgated,错误仍然显示如下:

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: can't create output file: /opt/local/bin/ggdb.cstemp (Permission denied)
/opt/local/bin/ggdb: the codesign_allocate helper tool cannot be found or used

【问题讨论】:

    标签: macos gdb macports codesign


    【解决方案1】:

    codesign 正在尝试将文件 ggdb.cstemp 写入您无权写入的目录 (/opt/local/bin/)。尝试改用sudo

    sudo codesign -s ggdb /opt/local/bin/ggdb
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-04-22
      • 2016-08-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-31
      • 1970-01-01
      相关资源
      最近更新 更多