Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cap command not found

I'm using Mac OS X 10.8.2 and I installed ruby & rails with rbenv.

I try to install capistrano with

gem install capistrano

Successfully installed capistrano-2.13.5

1 gem installed

Installing ri documentation for capistrano-2.13.5...

Installing RDoc documentation for capistrano-2.13.5...

Everytime I try to install with code, It says "1 gem installed".


But, If I write

capify .

I'm getting error like this.

zsh: command not found: capify


My $PATH

/Users/lutfidemirci/.rbenv/bin:/Users/lutfidemirci/.rbenv/shims:/Users/lutfidemirci/.rbenv/shims:/Applications/Postgres.app/Contents/MacOS/bin:/Users/lutfidemirci/.rbenv/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/var/lib/gems/1.8/bin

like image 957
Lütfi Demirci Avatar asked Nov 12 '12 02:11

Lütfi Demirci


2 Answers

Use rbenv rehash to make rbenv generate a binary shim for capistrano.

like image 72
Ilya O. Avatar answered Oct 13 '22 20:10

Ilya O.


If someone's using Capistrano 3.0.0 or higher should use:

cap install

instead of deprecated:

capify .
like image 39
sampi Avatar answered Oct 13 '22 21:10

sampi