or1k-elf-size command not found

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

Introduction

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

or1k-elf-size: command not found

or when using sudo you get the following error message

sudo: or1k-elf-size: command not found

Solutions to or1k-elf-size: command not found

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

In Ubuntu or1k-elf-size is provided by binutils-or1k-elf package.

binutils-or1k-elf is:

This package provides GNU assembler, linker and binary utilities 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 binutils-or1k-elf

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

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

sudo apt -y install binutils-or1k-elf

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

sudo aptitude install binutils-or1k-elf

Summary

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