to get capistrano to work, just install it like normal, then use the export
path command below.
install using gem install capistrano... then verify it is near this
directory doing gem contents capistrano...maybe not necessary, but it helped
me.
r...@j-laptop:/home/j/rails/trunk# capify
bash: capify: command not found
r...@j-laptop:/home/j/rails/trunk# export PATH=$PATH:/var/lib/gems/1.8/bin
r...@j-laptop:/home/j/rails/trunk# capify
Please specify the directory to capify, e.g. `capify .'
r...@j-laptop:/home/j/rails/trunk# cap deploy
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
executing locally: "svn info http://finliteracy.org/svn/svn/trunk
-rHEAD"
On Wed, Mar 11, 2009 at 11:53 PM, Joshua Montross <[email protected]
> wrote:
> r...@j-laptop:/home/j# gem contents capistrano|grep bin
> /var/lib/gems/1.8/gems/capistrano-2.5.5/bin/cap
> /var/lib/gems/1.8/gems/capistrano-2.5.5/bin/capify
> r...@j-laptop:/home/j# /var/lib/gems/1.8/gems/capistrano-2.5.5/bin/capify
> bash: /var/lib/gems/1.8/gems/capistrano-2.5.5/bin/capify: Permission denied
>
>
> then typing this made capify command work
>
> export PATH=$PATH:/var/lib/gems/1.8/bin
>
> r...@j-laptop:/home/j/rails/trunk# capify
> bash: capify: command not found
> r...@j-laptop:/home/j/rails/trunk# export PATH=$PATH:/var/lib/gems/1.8/bin
> r...@j-laptop:/home/j/rails/trunk# capify
>
>
>
>
> On Tue, Mar 10, 2009 at 10:49 PM, Leandro Nunes <[email protected]>wrote:
>
>> Hy Joshua,
>>
>> Try to put in your system path the gems path.
>>
>> Change '/etc/profile' file for something like this:
>>
>> PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/var/lib/gems/1.8/bin"
>>
>> T+
>>
>>
>> On Tue, Mar 10, 2009 at 11:23 PM, Joshua Montross <
>> [email protected]> wrote:
>>
>>>
>>> @ erik,
>>>
>>> How do I add directory to $path?
>>>
>>> Joshua
>>>
>>>
>>> On Mar 10, 2009, at 2:23 PM, Erik J <[email protected]> wrote:
>>>
>>> >
>>> > you can display the installed files for a gem via: $ gem contents
>>> > <gem>
>>> >
>>> > in this case: $ gem contents capistrano
>>> >
>>> > you can find the cap executable within this list using grep:
>>> >
>>> > $ gem contents capistrano|grep cap|grep bin
>>> >
>>> > you'll want to add the directory containing the 'cap' executable to
>>> > your $PATH, or invoke the command via its full path (/var/lib.../bin/
>>> > cap)
>>> >
>>> > hope that helps.
>>> >
>>> > -erik
>>> >
>>> >
>>> > On 10 Mar, 11:18, lamp5matt <[email protected]> wrote:
>>> >> FWIW, my gems ended up are in
>>> >> /var/lib/gems/1.8/gems
>>> >>
>>> >> which is not in my path, so I get the same
>>> >> cap:
>>> >>
>>> >> indicating that it might be installed, but not on the path. As per my
>>> >> other thread in here, I don't think symlinking it will work.
>>> >>
>>> >> M
>>> >>
>>> >> On Mar 10, 4:59 am, Aníbal Rojas <[email protected]> wrote:
>>> >>
>>> >>
>>> >>
>>> >>> Joshua,
>>> >>
>>> >>> From the output of the commands it looks like Capistrano isn't
>>> >>> installed at all.
>>> >>
>>> >>> I would suggest reinstalling it and pasting the output here.
>>> >>> if it
>>> >>> is actually installed, it won't hurt.
>>> >>
>>> >>> Best regards,
>>> >>
>>> >>> --------------------------
>>> >>> Aníbal Rojas @anibalhttp://hasmanydevelopers.comhttp://rubycor
>>>
>>> >>> ner.comhttp://en.anibal.roj...
>>> >>
>>> >>> On 9 Mar, 19:21, Joshua Montross <[email protected]> wrote:
>>> >>
>>> >>>> Capistrano Friends,
>>> >>
>>> >>>> Here is the information on the commands people said I should do.
>>> >>>> I think my
>>> >>>> Echo $PATH may not be where it should be, but I am not sure what
>>> >>>> I am
>>> >>>> supposed to do. Thank you in advance to anyone who helps.
>>> >>>> ubuntu 8.04 is
>>> >>>> os. this is for development environment.
>>> >>
>>> >>>> j...@j-laptop:~$ whereis cap
>>> >>>> cap:
>>> >>>> j...@j-laptop:~$ sudo su
>>> >>>> [sudo] password for j:
>>> >>>> r...@j-laptop:/home/j# whereis cap
>>> >>>> cap:
>>> >>>> r...@j-laptop:/home/j#
>>> >>
>>> >>>> r...@j-laptop:/home/j# echo $PATH
>>> >>>> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/
>>> >>>> games
>>> >>>> r...@j-laptop:/home/j#
>>> >>
>>> >>>> On Mon, Mar 9, 2009 at 8:29 AM, Aníbal Rojas <anibalro...@gmai
>>> >>>> l.com> wrote:
>>> >>
>>> >>>>> Joshua,
>>> >>
>>> >>>>> Please paste the output of:
>>> >>
>>> >>>>> $ whereis cap
>>> >>
>>> >>>>> It is possible you are missing a symlink to point to a
>>> >>>>> versioned
>>> >>>>> command or it is ubicated in another folder than expected.
>>> >>
>>> >>>>> --
>>> >>>>> Aníbal Rojas
>>> >>>>> http://hasmanydevelopers.com
>>> >>>>> http://rubycorner.com
>>> >>>>> http://en.anibal.rojas.com.ve
>>> >>
>>> >>>>> On 10 Mar, 00:16, Joshua Montross <[email protected]>
>>> >>>>> wrote:
>>> >>>>>> I cannot get capistrano to work in ubuntu 8.04. I found things
>>> >>>>>> on web
>>> >>>>>> about doing export PATH, and I did those, but no help. the gem
>>> >>>>>> list
>>> >>>>>> shows it as installed.
>>> >>
>>> >>>>>> code below. any help really appreciated. I need to deploy.
>>> >>
>>> >>>>>> cap -h
>>> >>>>>> bash: cap: command not found
>>> >
>>> > >
>>>
>>>
>>>
>>
>>
>> --
>> Dois Axé!!!
>>
>> -----
>> "Comece fazendo o que é necessário, depois o que é possível e de repente
>> você estará fazendo o impossível."
>> São Francisco de Assis
>>
>> Leandro Nunes dos Santos
>> Bacharel em Ciência da Computação - UFBA
>> Membro do Projeto Software Livre Bahia - www.psl-ba.softwarelivre.org
>> Membro da SaferNet - www.safernet.org.br
>>
>> Contatos:
>> ICQ: 86979111 Jabber: [email protected]
>> TEL: (71) 32407940 CEL: (71) 99749871
>>
>>
>> >>
>>
>
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---