2

When I enter pry to start the pry gem shell my terminal (Gnome 3.4.1.1) responds:

$ pry
No command 'pry' found, did you mean:
 Command 'pr' from package 'coreutils' (main)
pry: command not found

I installed pry using $ gem install pry

As mentioned in the title I'm running Linux Mint Maya (13).

pb2q
  • 58,613
  • 19
  • 146
  • 147
Rog0r
  • 31
  • 3
  • Did you add your gem bin path to your executable search path? Possible duplicate: http://stackoverflow.com/questions/909673/how-do-i-use-gems-with-ubuntu – Cubic Sep 06 '12 at 20:41
  • I check my $PATH variable and it had the bin folder included. I actually found the reason: I had to add {[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"} to my .bashrc which i forgot installing rvm. Everthing is working now. Thanks! – Rog0r Sep 06 '12 at 21:57

2 Answers2

6

If you've installed pry using rbenv, then you need to run the following in you terminal.

rbenv rehash

rbenv caches current Ruby executables as so-called shims.

Satyam Singh
  • 1,115
  • 11
  • 28
1

I had this problem too and resolved by typing a command in terminal:

rvm rubygems current
megas
  • 21,401
  • 12
  • 79
  • 130