英文:
Ld Error during Go Installation on OSX
问题
我尝试从源代码构建Go 1.2,但无法使其工作。昨天它还能正常工作,但现在ld始终失败。我尝试重新安装Xcode命令行工具。这是我的终端输出:
$ hg update go1.2
$ cd src
$ ./all.bash
构建C引导工具。
cmd/dist
ld: 无法写入输出文件: cmd/dist/dist,架构为x86_64
clang: 错误: 链接器命令失败,退出码为1(使用-v查看调用)
我正在运行OSX 10.9.1。
可能发生了什么导致出现这个错误?(它昨天还能工作,我只是在使用homebrew时进行了一些操作)
除了重新安装OSX,还能做什么?
英文:
I try to build Go 1.2 from source but can't get it to work anymore. It worked yesterday but now ld always fails. I tried to reinstall Xcode command line tools. This is my Terminal output:
$ hg update go1.2
$ cd src
$ ./all.bash
# Building C bootstrap tool.
cmd/dist
ld: can't write output file: cmd/dist/dist for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am running OSX 10.9.1.
What could have happened that this error shows? (It worked yesterday, I just played around with homebrew)
What else can I do BESIDES reinstalling OSX?
答案1
得分: 1
感谢Volker的评论,我重新应用了正确的权限到go文件夹。我没有找到具体的文件夹有错误的权限,但是重置整个go文件夹的权限解决了问题。
我没有想到这会成为一个问题,因为我将go安装在我的主文件夹中。
英文:
Thanks to the comment of Volker I reapplied the correct permissions to the go folder. I didn't finde a specific folder that had the false permissions but resetting them for the whole go folder fixed it.
I did not think this would be an issue because I installed go in my home folder.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论