1

I successfully installed Padrino with sudo gem install padrino, but when I try and run padrino ..., I get -bash: padrino: command not found. Even sudo produces this result. Anyone else run into this problem? I looked in /usr/bin, but it is not there. Thank you for your help.

I am using Mac OS X.6.8. I have been successfully installing and using gems all day, until now.

Jeff Erickson
  • 3,783
  • 8
  • 36
  • 43

3 Answers3

3

Ah, fixed it. After looking at gem environment's output, I noticed that the path listed as EXECUTABLE DIRECTORY was not in my PATH. Adding it to my .bashrc solved the problem.

Jeff Erickson
  • 3,783
  • 8
  • 36
  • 43
  • That was exactly my problem too. I'm surprised that RVM doesn't add it as part of the install... – Julian Sep 15 '13 at 15:19
2

Can you try:

sudo gem update --system
gem search padrino --no-version | xargs sudo gem uninstall -a

then

sudo gem install padrino

then

which padrino
which padrino-gen

Are you using rvm or rbenv?

DAddYE
  • 1,719
  • 11
  • 16
1

I face the same situtation and terminal restart solved my issue. I use rbenv as a version manager. Even though padrino was in the gems folder, the command itself was unreachable.

After I restarted my terminal, the newly installed gem was available.

Mark
  • 5,994
  • 5
  • 42
  • 55