Try installing intall gcc47, Error: Dependency 'ld64' not found

Try installing gcc47 on osx 10.6.8, but got the following error:

 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>

Did I miss something?

+3
source share
6 answers

I think he is still present at /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/ld64. However, the Portfile seems so wrong that the port index cannot parse it. First I installed llvm-3.0, and then edited Portfile, commenting on the following lines

#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}
#}

After that, running "sudo portindex" fixed the problem. Finally, I was able to install ld64 and gcc47.

+1
source

. ld64 cctools .

sudo port clean ld64 cctools
sudo port install gcc47
+1
0

ld64 , : - (

xcodebuild . 1. - .

0

; , .

sudo port selfupdate
sudo port install gcc47
0

I do not know how you get this problem. I also encounter this problem after upgrading my system to Mavericks . After checking the main.log file , I found that the error was due to the fact that the assembly could not find. Then I install the latest version of Xcode Command Line Tools , it works! Hope my experience helps you.

0
source

All Articles