riscv64-unknown-elf-objdump command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
riscv64-unknown-elf-objdump: command not found
or when using sudo you get the following error message
sudo: riscv64-unknown-elf-objdump: command not found
Solutions to riscv64-unknown-elf-objdump: command not found
How To Fix riscv64-unknown-elf-objdump: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu riscv64-unknown-elf-objdump is provided by binutils-riscv64-unknown-elf package.
binutils-riscv64-unknown-elf is:
Bare metal binutils for embedded RISC-V chips. The programs in this package are used to manipulate binary and object files that have been created for RISC-V architecture.
To fix this problem, we can install more using the command below.
sudo apt-get -y install binutils-riscv64-unknown-elf
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install binutils-riscv64-unknown-elf.
sudo apt -y install binutils-riscv64-unknown-elf
Or if you have aptitude installed you can use the following command.
sudo aptitude install binutils-riscv64-unknown-elf
Summary
In this tutorial we learn how to fix riscv64-unknown-elf-objdump command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.