Hello,
I am very new to ruby and am writing my first script. We are using RHEL and my script has the following in it:
require ‘rubygems’
require ‘aws-sdk’
puts ‘This is a Test’
When I execute the script I am getting an error for the require ‘aws-sdk’. Here is the message I am receiving, what are we missing?
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require': /usr/lib/ruby/gems/1.8/gems/aws-sdk-core-3.44.0/lib/aws-sdk-core.rb:95: syntax error, unexpected ':', expecting ')' (SyntaxError) @shared_config ||= SharedConfig.new(config_enabled: enabled) ^ /usr/lib/ruby/gems/1.8/gems/aws-sdk-core-3.44.0/lib/aws-sdk-core.rb:169: syntax error, unexpected $end, expecting kEND from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
require’
from /usr/lib/ruby/gems/1.8/gems/aws-sdk-resources-3.35.0/lib/aws-sdk-resources.rb:1
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 /usr/lib/ruby/gems/1.8/gems/aws-sdk-3.0.1/lib/aws-sdk.rb:1
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in
require’
from check.rb:2
Aany help would be greatly appreciated.