Capistrano无法找到SVN客户端

时间:2010-01-20 11:54:34

标签: capistrano

我在本地和Solaris生产服务器上有一个SVN客户端,它们在我的路径中,因此当我输入svn somethng命令时(我的PC和Solaris)。

这是错误:

C:\dev\apps>cap deploy:migrations
 * executing `deploy:migrations'
 * executing `deploy:update_code'
   executing locally: "svn info https://svn.domain.co.uk/svn/apps  -rHEAD"
 *** executable 'svn' not present or not in $PATH on the local system!
* executing "svn checkout -q  -r6 https://svn.domain.co.uk/svn/apps /sites/r
ails-data/apps/releases/20100120114312 && (echo 6 > /sites/rails-data/apps/relea
ses/20100120114312/REVISION)"
   servers: ["solaris001.ds.domain.com"]
Password:
  [solaris001.ds.domain.com] executing command
** [solaris001.ds.domain.com :: err] ld.so.1: svn: fatal: libaprutil-1.so.
0: open failed: No such file or directory
** [solaris001.ds.domain.com :: err] Killed
   command finished
failed: "sh -c 'svn checkout -q  -r6 https://svn.domain.co.uk/svn/apps /sites/
rails-data/apps/releases/20100120114312 && (echo 6 > /sites/rails-data/apps/rele
ases/20100120114312/REVISION)'" on solaris001.ds.domain.com

在我的PC和Solaris中,我可以成功运行Capistrano无法找到的库和可执行文件的命令。

这是我的食谱:

set :application, "apps"
set :user, 'me'
set :domain,      "solaris001.ds.domain.com"
set :repository,  "https://svn.domain.co.uk/svn/apps"
set :use_sudo,    false
set :deploy_to,   "/sites/rails-data/#{application}"

role :app, domain
role :web, domain

namespace :deploy do
  task :start, :roles => :app do
    run "touch #{current_release}/tmp/restart.txt"
  end

  task :stop, :roles => :app do
    # Do nothing.
  end

  desc "Restart Application"
  task :restart, :roles => :app do
    run "touch #{current_release}/tmp/restart.txt"
  end
end