Failed to install with `cargo install mdblog`. Cause: incompatible stable compiler. Fix is documented.
LittleEntity opened this issue · 1 comments
LittleEntity commented
Fix
First make shure you have the rust nightly toolchain installed.
rustup show
should show text like
installed toolchains
--------------------
stable-###-darwin
nightly-###-darwin
If the nightly toolchain does not show, install it with rustup.
rustup install nightly
This fixes the error if one has the nightly rust channel installed:
cargo +nightly install mdblog
@FuGangqiang
Please include the solution in your crate description. Thankyou for your work <(^_^)> I was looking for a static site generator written in rust. mdblog.rs looks very promising.
Error Report
error: failed to run custom build command for `pear_codegen v0.1.2`
Caused by:
process didn't exit successfully: `###/build-script-build` (exit code: 101)
--- stderr
Error: Pear requires a nightly or dev version of Rust.
Installed version is: 1.41.0 (2020-01-27). Minimum required: 1.31.0-nightly (2018-10-05).
thread 'main' panicked at 'Aborting compilation due to incompatible compiler.', ### pear_codegen-0.1.2/build.rs:31:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
warning: build failed, waiting for other jobs to finish...
error: failed to compile `mdblog v0.17.0`, intermediate artifacts can be found at `/var/folders/x4/###`
Caused by:
build failed
FuGangqiang commented
Thank you for your advice, fixed