Not a regular Ruby developer.
Rebuilding a Ruby environment after moving from Mandriva 2008.0 to 2009.1.

ruby 1.8.7 (2008-08-11 patchlevel 72) [i586-linux]
ruby-svg-1.0.2
I get the following error trace
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require': /usr/lib/ruby/site_ruby/1.8/svg/element.rb:423:
syntax error, unexpected $undefined (SyntaxError)
       svg << %| textLength="#{@}"|   if @length
                                ^
/usr/lib/ruby/site_ruby/1.8/svg/element.rb:430: syntax error, unexpected
kEND, expecting '}'
         from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
         from /usr/lib/ruby/site_ruby/1.8/svg/svg.rb:9
         from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
         from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
         from /home/graeme/Software/weather/devel/svgwind.rb:2

where svgwind.rb:2 says
require 'svg/svg'

Version information:
# $Id: element.rb,v 1.9 2002/11/12 11:32:40 rcn Exp $
Is this some sort of version compatibility issue? There was no such
problem under the previous environment.
Any help welcome.
Grimble