Command not found after installing pry

I installed pry and related gems using the following line at the bash prompt:

gem install pry-plus --no-ri --no-rdoc 

Successful gem installation was reported from this command.

All the instructions I found say that after installing pry, I can proceed to the prompt by entering pry as the bash command. However, the actual result of bash: pry: command not found

which pry tells no pry in (...) where the ellipses are $ PATH. In contrast, which rake reports /local/tbh/rbenv/shims/rake and which gem reports /local/tbh/rbenv/shims/gem

Why wasn't the command for pry created with gem install? How can I make it work as designed?

(I am using Ruby 1.9.3 with rbenv (and not RVM) in Scientific Linux as a virtual environment.)

+6
source share
1 answer

rbenv caches the current Ruby executables as so-called pads. You have to run

 $ rbenv rehash 

after installing a new executable file to update the gaskets .

+18
source

Source: https://habr.com/ru/post/948160/


All Articles