rake-compiler command not found

In this troubleshooting guide we learn how to fix rake-compiler command not found error message

Introduction

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

rake-compiler: command not found

or when using sudo you get the following error message

sudo: rake-compiler: command not found

Solutions to rake-compiler: command not found

How To Fix rake-compiler: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu rake-compiler is provided by rake-compiler package.

rake-compiler is:

The rake-compiler is first and foremost a productivity tool for Ruby developers. It’s goal is to make the busy developer’s life easier by simplifying the building and packaging of Ruby extensions by simplifying code and reducing duplication.

It follows convention over configuration by advocating a standardized build and package structure for both C and Java based RubyGems.

Rake-compiler is the result of many hard-won experiences dealing with several diverse RubyGems that provided native extensions for different platforms and different user configurations in different ways. Details such as differences in code portability, differences in code clarity, and differences in project directory structure often made it very difficult for newcomers to those RubyGems.

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

sudo apt-get -y install rake-compiler

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

You can also use apt command to install rake-compiler.

sudo apt -y install rake-compiler

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

sudo aptitude install rake-compiler

Summary

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