pirb command not found

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

Introduction

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

pirb: command not found

or when using sudo you get the following error message

sudo: pirb: command not found

Solutions to pirb: command not found

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

In Ubuntu pirb is provided by ruby-proxifier package.

ruby-proxifier is:

Proxifier enable ruby programmers to use HTTP or SOCKS proxies interchangeably when using TCPSockets. Either manually with Proxifier::Proxy#open or by require "proxifier/env".

Allows one to use ruby code that doesn’t user proxies for users that have to use proxies. The pruby and pirb executables are simple wrappers for their respective ruby executables that support proxies from environment variables.

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

sudo apt-get -y install ruby-proxifier

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

You can also use apt command to install ruby-proxifier.

sudo apt -y install ruby-proxifier

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

sudo aptitude install ruby-proxifier

Summary

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