stfed
stfed copied to clipboard
Could not build due to dependencies
I'm very fresh to rust, so hopefully I'm missing something that's really obvious 😅
OS
Ubuntu 22.04.2 LTS
Nothing fancy, it's really just the vanilla install.
What I did
Installed rust using rustup
Did a git clone of this repo
Went into the root folder of the cloned repo
Ran the command cargo build --release
What I expect to happen
The build happens and exits successfully, presumably?
What actually happens
I get this error:
Downloaded fnv v1.0.7
Downloaded unicode-width v0.1.11
Downloaded itoa v1.0.9
Downloaded form_urlencoded v1.2.0
Downloaded version_check v0.9.4
Downloaded textwrap v0.11.0
Downloaded tinyvec_macros v0.1.1
Downloaded lazy_static v1.4.0
Downloaded thiserror v1.0.50
Downloaded percent-encoding v2.3.0
Downloaded structopt-derive v0.4.18
Downloaded heck v0.3.3
Downloaded bitflags v1.3.2
Downloaded once_cell v1.18.0
Downloaded globset v0.4.13
Downloaded proc-macro-error-attr v1.0.4
Downloaded proc-macro-error v1.0.4
Downloaded addr2line v0.21.0
Downloaded log v0.4.20
Downloaded xdg v2.5.2
Downloaded unicode-bidi v0.3.13
Downloaded anyhow v1.0.75
Downloaded ryu v1.0.15
Downloaded unicode-ident v1.0.12
Downloaded toml v0.5.11
Downloaded backtrace v0.3.69
Downloaded tinyvec v1.6.0
Downloaded serde v1.0.190
Downloaded url v2.4.1
Downloaded memchr v2.6.4
Downloaded cc v1.0.83
Downloaded quote v1.0.33
Downloaded serde_derive v1.0.190
Downloaded miniz_oxide v0.7.1
Downloaded proc-macro2 v1.0.69
Downloaded structopt v0.3.26
Downloaded rustc-demangle v0.1.23
Downloaded base64 v0.21.5
Downloaded unicode-segmentation v1.10.1
Downloaded serde_json v1.0.108
Downloaded ureq v2.8.0
Downloaded unicode-normalization v0.1.22
Downloaded aho-corasick v1.1.2
Downloaded clap v2.34.0
Downloaded quick-xml v0.23.1
Downloaded syn v1.0.109
Downloaded syn v2.0.38
Downloaded object v0.32.1
Downloaded gimli v0.28.0
Downloaded bstr v1.7.0
Downloaded regex-syntax v0.8.2
Downloaded regex-automata v0.4.3
Downloaded libc v0.2.149
Downloaded idna v0.4.0
Downloaded regex v1.10.2
Downloaded simple_logger v4.2.0
Downloaded 60 crates (6.1 MB) in 1.01s
Compiling proc-macro2 v1.0.69
Compiling unicode-ident v1.0.12
Compiling libc v0.2.149
Compiling memchr v2.6.4
Compiling version_check v0.9.4
Compiling serde v1.0.190
Compiling tinyvec_macros v0.1.1
Compiling syn v1.0.109
error: linker `cc` not found
|
= note: No such file or directory (os error 2)
error: could not compile `serde` (build script) due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `proc-macro2` (build script) due to previous error
error: could not compile `libc` (build script) due to previous error
error: could not compile `syn` (build script) due to previous error
Some crates require native C toolchain tools to compile, for Ubuntu installing build-essential should fix it.