尝试在osx 10.6.8上安装gcc47,但出现以下错误:
sudo port install gcc47
---> Computing dependencies for gcc47
Error: Dependency 'ld64' not found.
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
我有想念吗?
最佳答案
我认为它仍然在/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ld64中。但是,Portfile似乎有很多错误,以至于端口索引无法解析它。我先安装了llvm-3.0,然后编辑了Portfile,注释了以下几行
#if {![variant_isset llvm29] && ![variant_isset llvm30] && ![variant_isset llvm31]} {
# default_variants +llvm30
#}
#set llvm_version {}
#variant llvm29 conflicts llvm30 llvm31 description {Use llvm-2.9 for libLTO} {
# set llvm_version 2.9
# depends_lib-append port:llvm-${llvm_version}
#}
#variant llvm30 conflicts llvm29 llvm31 description {Use llvm-3.0 for libLTO} {
set llvm_version 3.0
# depends_lib-append port:llvm-${llvm_version}
#}
#variant llvm31 conflicts llvm29 llvm30 description {Use llvm-3.1 for libLTO} {
# set llvm_version 3.1
# depends_lib-append port:llvm-${llvm_version}
#}
此后,运行“ sudo portindex”可以解决此问题。最终,我能够安装ld64和gcc47。