luciusmagn / morpho

My version of mdblog static site generator. Contains some improvement, changes and feature removals
Other
2 stars 1 forks source link

build failed #1

Open luckypoemster opened 1 week ago

luckypoemster commented 1 week ago

hi.

in linux vps, git clone https://github.com/luciusmagn/morpho cd morpho cargo build --release shows: .... Compiling unic-segment v0.9.0 Compiling pest_derive v2.5.1 Compiling globwalk v0.8.1 Compiling conduit v0.9.0 Compiling filetime v0.2.19 Compiling atty v0.2.14 Compiling humansize v1.1.1 Compiling pathdiff v0.2.1 Compiling fastrand v1.8.0 Compiling termcolor v1.1.3 Compiling remove_dir_all v0.5.3 Compiling convert_case v0.4.0 Compiling rustc-serialize v0.3.24 Compiling percent-encoding v2.2.0 error[E0310]: the parameter type T may not live long enough --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustc-serialize-0.3.24/src/serialize.rs:1155:5 1155 fn decode(d: &mut D) -> Result<Cow<'static, T>, D::Error... ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
the parameter type T must be valid for the static lifetime...
...so that the type T will meet its required lifetime bounds...

note: ...that is required by this bound --> /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/alloc/src/borrow.rs:179:30 help: consider adding an explicit lifetime bound | 1151 | impl<'a, T: ?Sized + 'static> Decodable for Cow<'a, T> | +++++++++

Compiling tera v1.17.1 For more information about this error, try rustc --explain E0310. error: could not compile rustc-serialize (lib) due to 1 previous error warning: build failed, waiting for other jobs to finish...

how to fix it? thank u

luciusmagn commented 1 week ago

Hey!

I will take a look, haha. It has been years since I last recompiled it

luciusmagn commented 1 week ago

I have fixed it for you, try now!

luciusmagn commented 1 week ago

Also make sure you have the latest stable Rust! :)

luckypoemster commented 1 week ago

actually i install the app by "cargo install morpho" successfully. and setup a site: https://morpho-blog-of-brite-d6m3wut36-luckypoems-projects.vercel.app/, but there is no "next page" shown on the homepage. why? how to fix it? that is : the link of https://morpho-blog-of-brite-d6m3wut36-luckypoems-projects.vercel.app/index-2.html isn't shown on the homepage.