Jeff Erickson
Jeff Erickson

Reputation: 3893

padrino: command not found

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.

Upvotes: 1

Views: 864

Answers (3)

Mark
Mark

Reputation: 6404

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.

Upvotes: 1

Jeff Erickson
Jeff Erickson

Reputation: 3893

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.

Upvotes: 3

DAddYE
DAddYE

Reputation: 1729

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?

Upvotes: 2

Related Questions