是否有替代紅寶石aws-s3。
我已經安裝了AWS-S3(創業板安裝AWS-S3)卻得到了錯誤,當我運行我的腳本替代紅寶石aws-s3
ruby s3Metadata.rb
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in
'gem_original_require': /usr/lib/ruby/gems/1.8/gems/builder-3.1.4/lib/builder/xmlbase.rb:183:
syntax error, unexpected ',', expecting '|' (SyntaxError)
define_method(sym) do |*args, &block|
^
/usr/lib/ruby/gems/1.8/gems/builder-3.1.4/lib/builder/xmlbase.rb:192: syntax error, unexpected kEND, expecting $end from /usr/local/lib/site_ruby/1.8/rubygems /custom_require.rb:31:in 'require'
from /usr/lib/ruby/gems/1.8/gems/builder-3.1.4/lib/builder/xmlmarkup.rb:14
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 'gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 'require'
from /usr/lib/ruby/gems/1.8/gems/builder-3.1.4/lib/builder.rb:12
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 'gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in 'require'
from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.6.3/lib/aws/s3/extensions.rb:159:in 'require_library_or_gem'
from /usr/lib/ruby/gems/1.8/gems/aws-s3-0.6.3/lib/aws/s3.rb:12
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in 'gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in 'require'
from s3Metadata.rb:4`
s3Metadata.rb:4 = `require 'aws/s3'
Google搜索,但沒有解決方案....
我需要運行腳本來更新/在亞馬遜S3中添加一些元數據。
aws-s3 (0.6.3)
有老版本的紅寶石ruby 1.8.6 (2007-09-24 patchlevel 111) [x86_64-linux]
的我不能升級它會搞砸了很多的東西。有沒有解決方案或替代ruby aws-s3?
你知道它是否會與aws-s3產生任何**衝突,因爲它已被我的應用程序使用,但由於某種原因,當我嘗試運行我的腳本時出現此錯誤? – mamesaye
它本身不會衝突 - 你可以同時使用(儘管你不應該)。但是,他們已經完全分離了API,因此爲aws-s3 gem編寫的代碼不會針對版權寶石執行。謝謝 – Winfield
,但它需要Ruby版本> = 1.8.7。 – mamesaye