在OS X Yosemite上从源构建Rust时出错

时间:2014-10-23 16:52:05

标签: rust

我最近将MacBook Pro升级为Yosemite,而且我现在无法从源代码构建Rust。我跑的时候

$ ./configure
$ make && sudo make install

它似乎构建良好,但挂在此行的安装

rustdoc: doc/rustc/index.html

并最终输出此错误:

task '<main>' failed at 'failed to generate documentation: couldn't open file (permission denied (Permission denied); path=doc/implementors/graphviz/trait.GraphWalk.js; mode=open; access=read)', /Users/Raevynheart/Code/rust_projects/rust/src/librustdoc/lib.rs:246
make: *** [doc/rustc/index.html] Error 101
make: *** [install] Error 2

我发现这可能与issue有关,但我不确定如何继续。谢谢你的帮助。

1 个答案:

答案 0 :(得分:0)

对于遇到类似问题的人来说,这对我有用。如果您运行make help,则会向您显示make命令的选项。其中之一是:

#   * clean - Clean the build repertory. It is advised to run this
#             command if you want to build Rust again, after an update
#             of the git repository.

运行sudo make clean然后make && sudo make install让Rust准备好再次滚动。