oxref command not found

In this troubleshooting guide we learn how to fix oxref command not found error message

Introduction

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

oxref: command not found

or when using sudo you get the following error message

sudo: oxref: command not found

Solutions to oxref: command not found

How To Fix oxref: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu oxref is provided by oxref package.

oxref is:

The program oxref writes to the standard output stream a cross reference of symbols defined in unstripped object files and/or libraries.

It demangles C++ symbols and can (probably) be used for a large range of languages.

Oxref does not interpret the object files and libraries itself, but calls objdump(1) to do so. The output produced by objdump is then filtered by oxref, generating the cross reference listing.

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

sudo apt-get -y install oxref

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

You can also use apt command to install oxref.

sudo apt -y install oxref

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

sudo aptitude install oxref

Summary

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