我最近将我的 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这可能是相关的,但我不确定如何进行。感谢您的帮助。
最佳答案
对于遇到类似问题的任何人,以下是对我有用的方法。如果您运行 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 准备好再次运行。
关于rust - 在 OS X Yosemite 上从源构建 Rust 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26533249/