rust-lld command not found

In this troubleshooting guide we learn how to fix rust-lld command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

rust-lld: command not found

or when using sudo you get the following error message

sudo: rust-lld: command not found

Solutions to rust-lld: command not found

How To Fix rust-lld: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rust-lld is provided by rustc package.

rustc is:

Rust is a curly-brace, block-structured expression language. It visually resembles the C language family, but differs significantly in syntactic and semantic details. Its design is oriented toward concerns of “programming in the large”, that is, of creating and maintaining boundaries - both abstract and operational - that preserve large-system integrity, availability and concurrency.

It supports a mixture of imperative procedural, concurrent actor, object-oriented and pure functional styles. Rust also supports generic programming and meta-programming, in both static and dynamic styles.

To fix this problem, we can install more using the command below.

sudo apt-get -y install rustc

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install rustc.

sudo apt -y install rustc

Or if you have aptitude installed you can use the following command.

sudo aptitude install rustc

Summary

In this tutorial we learn how to fix rust-lld command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.