If nothing else, you might want to "gem uninstall" all versions of
capistrano that you've got installed, and then "gem install
capistrano" and see if that works any better.
- Jamis
- Jamis
- Jamis
I'm just wondering if there is something, somewhere, that is mucking
with your load path. Try adding this to the bottom of both your
deploy.rb and deploy/staging.rb files:
puts(__FILE__, load_paths.join(":"))
The load paths that are printed should be (by default) "." and the
path to the "recipes" subdirectory in your capistrano installation (/
path/to/gems/capistrano-2.4.0/lib/capistrano/recipes).
- Jamis
On Jun 23, 2008, at 10:10 AM, nick.l...@googlemail.com wrote:
>
> nick@nick-laptop:~$ ls -l /usr/lib/ruby/gems/1.8/gems/
> capistrano-2.4.0/
- Jamis
Leopard 10.5.3, Cap 2.4, gem 1.1.1, ruby 1.8.6 (2007-09-24 patchlevel
111) [universal-darwin9.0]
Jamie
- Jamis
- Jamis
- Jamis
Digging deeper, I found that the local_dependency.rb file in my local
capistrano repository had the same permissions issue. Some poking
around with 'git ls-tree' didn't indicate that the file itself had
ever been committed with those permissions, so I resorted to brute
force and nuked my local capistrano repository, and cloned it again
from github. And the perms were correct on that file now.
So, I suspect that rubygems kept the bad permissions when I built the
2.4.0 gem, and made sure the permissions were preserved on each
install. Until a new gem is available, fixing the permissions on the
lib/capistrano/recipes/deploy/local_dependency.rb file should fix any
problems you have. I'll try to get 2.4.1 out this week.
Thanks for everyone who contributed to this investigation. I apologize
for the frustration!
- Jamis
Today we debugged a similar permission issue with sqlite3 on a
colleagues computer.
Jonathan
--
Jonathan Weiss
http://blog.innerewut.de
http://twitter.com/jweiss
- Jamis
Both lib/sqlite3/database.rb and lib/sqlite3/translator.rb had no global
read permissions. I'm not sure which version of sqlite3 it was, I'll
have to check with my colleague.
- Jamis