httparty command not found

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

Introduction

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

httparty: command not found

or when using sudo you get the following error message

sudo: httparty: command not found

Solutions to httparty: command not found

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

In Ubuntu httparty is provided by ruby-httparty package.

ruby-httparty is:

HTTParty is a Ruby library to build easily classes that can use Web-based APIs and related services. At its simplest, the HTTParty module is included within a class, which gives the class a “get” method that can retrieve data over HTTP. Further directives, however, instruct HTTParty to parse results (XML, JSON, and so on), define base URIs for the requests, and define HTTP authentication information.

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

sudo apt-get -y install ruby-httparty

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

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

sudo apt -y install ruby-httparty

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

sudo aptitude install ruby-httparty

Summary

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