gcc - 通过 macports 安装 libunwind-headers 时遇到问题

标签 gcc macports

为了努力

sudo port install gcc47

看来我错过了
  • cctools
  • ld64
  • libunwind-headers

  • 其中
  • cctools
  • ld64

  • 取决于
  • libunwind-headers

  • 尝试
    sudo port install libunwind-headers
    

    我得到:
    --->  Building libunwind-headers
    Error: org.macports.build for port libunwind-headers returned: command execution failed
    Please see the log file for port libunwind-headers for details:
        /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libunwind-headers/libunwind-headers/main.log
    To report a bug, follow the instructions in the guide:
        http://guide.macports.org/#project.tickets
    Error: Processing of port libunwind-headers failed
    

    日志文件说:
    25 :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libunwind-headers    /libunwind-headers/work/libunwind-30" && /usr/bin/xcodebuild  -target "libunwind-ld" -configuration Deployment build OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLO    YMENT_TARGET=10.8 ARCHS= SDKROOT="" GCC_VERSION=com.apple.compilers.llvm.clang.1_0
     26 :info:build Exit code: 69
     27 :error:build org.macports.build for port libunwind-headers returned: command execution failed
     28 :debug:build Error code: NONE
     29 :debug:build Backtrace: command execution failed
     30     while executing
     31 "$procedure $targetname"
     32 :info:build Warning: targets not executed for libunwind-headers: org.macports.activate org.macports.build org.macports.destroot org.macports.install
     33 :notice:build Please see the log file for port libunwind-headers for details:
     34     /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_libunwind-headers/libunwind-headers/main.log
    

    请问我该怎么做?

    最佳答案

    在尝试安装 libunwind-headers 之前,您需要接受 Apple 的许可协议(protocol)

    sudo xcodebuild -license agree    
    

    关于gcc - 通过 macports 安装 libunwind-headers 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11888222/

    相关文章:

    python - os x python 2.6 总线错误

    c++ - GCC 允许我从空字符串中取消引用迭代器

    c - GCC:如何阻止 gcc 为 .o 文件创建随机临时文件名

    c - 如何使用 -std=gnu99 编译 Linux 内核模块?

    python - 更改 OSX Mountain Lion 中的默认 python

    gcc - 如何在 Mac OS X 上使用 AVX/pclmulqdq

    c - 如何防止 gcc -O2 优化 putchar?

    c - 测量 int 数组的元组数量

    无法使用 macports 安装导入 Python scipy 模块

    r - 使用 RSQLite 库时加载 MacPorts SQLite3