Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Corrosion » Rust Eclipse on Ubuntu 20.04(error: linker `cc` not found)
Rust Eclipse on Ubuntu 20.04 [message #1840498] Fri, 16 April 2021 14:36
TS Chia is currently offline TS ChiaFriend
Messages: 2
Registered: April 2021
Junior Member
Hi
Running Rust Project, eclipse kept returning error: linker `cc` not found
build-essential was installed.
I am able to compile the main.rs using command line rustc.
The binary can be executed with the expected result.
Please help.
The detailed message from Eclipse.

Compiling new_rust_project_2 v0.1.0 (/media/data/docs/eclipse/Rust/new_rust_project_2)
Running `rustc --crate-name new_rust_project_2 --edition=2018 src/main.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=8d73fda8bac4229e -C extra-filename=-8d73fda8bac4229e --out-dir /media/data/docs/eclipse/Rust/new_rust_project_2/target/debug/deps -C incremental=/media/data/docs/eclipse/Rust/new_rust_project_2/target/debug/incremental -L dependency=/media/data/docs/eclipse/Rust/new_rust_project_2/target/debug/deps`
error: linker `cc` not found
|
= note: No such file or directory (os error 2)

error: aborting due to previous error

error: could not compile `new_rust_project_2`

Caused by:
process didn't exit successfully: `rustc --crate-name new_rust_project_2 --edition=2018 src/main.rs --error-format=json --json=diagnostic-rendered-ansi --emit=dep-info,link -C embed-bitcode=no -C debuginfo=2 --test -C metadata=8d73fda8bac4229e -C extra-filename=-8d73fda8bac4229e --out-dir /media/data/docs/eclipse/Rust/new_rust_project_2/target/debug/deps -C incremental=/media/data/docs/eclipse/Rust/new_rust_project_2/target/debug/incremental -L dependency=/media/data/docs/eclipse/Rust/new_rust_project_2/target/debug/deps` (exit code: 1)
Next Topic:Learning Rust
Goto Forum:
  


Current Time: Tue Apr 23 16:47:14 GMT 2024

Powered by FUDForum. Page generated in 0.02911 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top