NeoArch

July 13, 2007

bash: cap: command not found

Filed under: Capistrano, Linux, Ubuntu — Jason @ 7:13 pm

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.

1 Comment »

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

    $ source ~/.bashrc

    Comment by Jon Leighton — September 28, 2007 @ 6:16 am

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.