or1k-elf-gcc-nm command not found

In this troubleshooting guide we learn how to fix or1k-elf-gcc-nm command not found error message

Introduction

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

or1k-elf-gcc-nm: command not found

or when using sudo you get the following error message

sudo: or1k-elf-gcc-nm: command not found

Solutions to or1k-elf-gcc-nm: command not found

How To Fix or1k-elf-gcc-nm: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu or1k-elf-gcc-nm is provided by gcc-or1k-elf package.

gcc-or1k-elf is:

This package provides GNU C compiler for a specific hardware and operating system combination. You don’t need it unless you plan to cross-compile programs for it from another operating system.

This package targets the Open RISC 1000 processors.

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

sudo apt-get -y install gcc-or1k-elf

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

You can also use apt command to install gcc-or1k-elf.

sudo apt -y install gcc-or1k-elf

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

sudo aptitude install gcc-or1k-elf

Summary

In this tutorial we learn how to fix or1k-elf-gcc-nm command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.