bash: cap: command not found
This post is just an FYI for those trying to use Capistrano on Ubuntu Feisty and running into the same problem I had. I had trouble finding specific information on the topic, thus this post.
I recently tried to use Cap on Ubuntu, and it would not work. I already had ruby and gems installed, having installed them using apt-get. I installed capistrano using the gem install capistrano. I could run gem list and capistrano was installed. All of my other gems worked fine.
When I checked the status of Capistrano using cap -h, I go the error bash: cap: command not found. After doing some searching, I found out how to fix it. Open ~/.bashrc using your favorite text editor. At the end of the file, add these lines:
#The following sets the path for Capistrano
export PATH=$PATH:/var/lib/gems/1.8/bin
Save the file and reboot. Capistrano should work now.
Cheers for that. You don’t need to reboot though, you can just:
$ source ~/.bashrc
Jon Leighton
September 28, 2007 at 6:16 am
THANK YOU!!!
I’m running Debian testing (lenny)
igarbla
May 29, 2008 at 2:19 pm
Very good. Thank you!
Guilherme
October 30, 2008 at 4:46 pm
thanks. the $ source ~/.bashrc is a good one…
joshua
December 17, 2008 at 3:29 pm