I am new to RoR, but I have had RoR running with Capistrano on a
different box. However I’m installing a fresh copy now and am finding
constant regex errors from the standard.rb file while attempting to
“show_tasks”. As this is a new installation, everything is up-to-date.
Here’s the environment:
FreeBSD 6.2-RC2
ruby 1.8.5
gem 0.9.0
rake 0.7.1
net-ssh 1.0.10, 1.0.9
net-sftp 1.1.0
capistrano 1.3.1, 1.2.0, 1.1.0
If I run the following commands:
mkdir newarea
cd newarea
rails newproject
cap -A newproject
cd newproject
which all appears to work properly outputting:
exists config
create config/deploy.rb
exists lib/tasks
create lib/tasks/capistrano.rake
So then I run:
cap show_tasks
which bails with the following:
- executing task show_tasks
Available tasks
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/recipes/standard.rb:30:in
load': target of repeat operator is invalid: /(.{1,56})(?:\s|\Z)+/ (RegexpError) from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/actor.rb:179:in
each_task’
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/actor.rb:176:in
each' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/actor.rb:176:in
each_task’
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/recipes/standard.rb:28:in
load' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/actor.rb:159:in
instance_eval’
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/actor.rb:159:in
show_tasks' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/cli.rb:271:in
send’
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/cli.rb:271:in
execute_recipes!' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/cli.rb:271:in
each’
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/cli.rb:271:in
execute_recipes!' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/cli.rb:247:in
execute!’
from
/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/lib/capistrano/cli.rb:12:in
execute!' from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.3.1/bin/cap:11 from /usr/local/bin/cap:18:in
load’
from /usr/local/bin/cap:18
There are no modified ruby files whatsoever. Is there a system regex
library problem perhaps?
Thanks for any help.