rpcgen command not found

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

Introduction

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

rpcgen: command not found

or when using sudo you get the following error message

sudo: rpcgen: command not found

Solutions to rpcgen: command not found

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

In Ubuntu rpcgen is provided by rpcsvc-proto package.

rpcsvc-proto is:

rpcgen is a tool that generates C code to implement an RPC protocol. The input to rpcgen is a language similar to C known as RPC Language (Remote Procedure Call Language).

This package also includes several rpcsvc header files and RPC protocol definitions from SunRPC sources that were previously shipped by glibc.

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

sudo apt-get -y install rpcsvc-proto

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

You can also use apt command to install rpcsvc-proto.

sudo apt -y install rpcsvc-proto

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

sudo aptitude install rpcsvc-proto

Summary

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