Ali Murteza Yesil Blog

Rust Development on Solus - 1

📅 Sat 16 January 2021
💯 Day 35 of #100DaysToOffload 🏷️ 100DaysToOffload development

I recently started the courses on Exercism to learn Rust language by practice. But I suddenly hit the first road block which was the missing cc linker, a glue that puts compiled binaries together.

$ cargo run
Compiling hello_world v0.1.0 (~/Projects/exercism/hello_world)
error: linker `cc` not found
  = note: No such file or directory (os error 2)

error: aborting due to previous error

error: could not compile `hello_world`

To learn more, run the command again with --verbose.

After some Ducking I came across an answer on StackOverflow and learned that there is a package called build-essentials for Ubuntu that installs basic stuff programmers need. But I am on Solus which is not based on Ubuntu. I learned from another answer that system.devel component on Solus offers the same convenience. But since it is a component, not a package, we need to run sudo eopkg install -c system.devel command to install it.

$ cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/hello_world`
Hello, world!

I know I will do something to mess up my system in future and I will seek this information again. I hope this information helps you too.

Day 35 of #100DaysToOffload


Toot on this thread to comment. This blog is a static site. Comments won't appear here.