NeoArch

What’s past is prologue; what’s present is weblog

bash: cap: command not found

with 4 comments

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.

Written by Jason Fowler

July 13, 2007 at 7:13 pm

Posted in Capistrano, Linux, Ubuntu

4 Responses

Subscribe to comments with RSS.

  1. Cheers for that. You don’t need to reboot though, you can just:

    $ source ~/.bashrc

    Jon Leighton

    September 28, 2007 at 6:16 am

  2. THANK YOU!!!

    I’m running Debian testing (lenny)

    igarbla

    May 29, 2008 at 2:19 pm

  3. Very good. Thank you!

    Guilherme

    October 30, 2008 at 4:46 pm

  4. thanks. the $ source ~/.bashrc is a good one…

    joshua

    December 17, 2008 at 3:29 pm


Leave a Reply