pry command not found
In this troubleshooting guide we learn how to fix pry command not found error message
Introduction
When you run more command in linux terminal / console, you get the following error message
pry: command not found
or when using sudo you get the following error message
sudo: pry: command not found
Solutions to pry: command not found
How To Fix pry: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu pry is provided by pry package.
pry is:
Pry is a powerful alternative to the standard IRB shell for Ruby. It is written from scratch to provide a number of advanced features, some of these include:
- Source code browsing (including core C source with the pry-doc gem)
- Documentation browsing
- Live help system
- Open methods in editors (
edit-method Class#method
) - Syntax highlighting
- Command shell integration (start editors, run git, and rake from within Pry)
- Gist integration
- Navigation around state (
cd
,ls
and friends) - Runtime invocation (use Pry as a developer console or debugger)
- Exotic object support (BasicObject instances, IClasses, …)
- A Powerful and flexible command system
- Ability to view and replay history
- Many convenience commands inspired by IPython, Smalltalk and other advanced REPLs
To fix this problem, we can install more using the command below.
sudo apt-get -y install pry
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install pry.
sudo apt -y install pry
Or if you have aptitude installed you can use the following command.
sudo aptitude install pry
Summary
In this tutorial we learn how to fix pry command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.