ruby_parse command not found

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

Introduction

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

ruby_parse: command not found

or when using sudo you get the following error message

sudo: ruby_parse: command not found

Solutions to ruby_parse: command not found

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

In Ubuntu ruby_parse is provided by ruby-ruby-parser package.

ruby-ruby-parser is:

ruby_parser (RP) can be used to parse and check syntax of Ruby code. “Pure Ruby” in this context means the parser’s code

  • consists solely of Ruby source files
  • does not add any native extensions or other C code (eg. with RubyInline) which requires a C compiler to be present on the user’s system

It utilizes racc and its output is same as that of ParseTree’s.

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

sudo apt-get -y install ruby-ruby-parser

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

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

sudo apt -y install ruby-ruby-parser

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

sudo aptitude install ruby-ruby-parser

Summary

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