S3Sync.net
February 02, 2014, 01:22:15 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: S3Sync & Ruby 1.9.1  (Read 4471 times)
compuminus
Newbie
*
Posts: 1


View Profile
« on: January 12, 2010, 02:41:01 AM »

Were the issues I've been reading about ever been resolved?  I've installed ruby/s3sync for the first time, and assumed that getting the latest version of each was best practice.  Here's the script & error message:

--------
export AWS_ACCESS_KEY_ID=xxxxxxx
export AWS_SECRET_ACCESS_KEY=xxxxxxx
export SSL_CERT_DIR=/home/xxxx/s3sync/certs
ruby /home/xxxx/s3sync/s3sync.rb -r -v --no-md5 --ssl --dryrun --exclude="_notes$" --delete /home/xxxx/public_html/images/ static.xxxx.com: >> /home/xxxx/logs/s3sync.log
--------

--------
/home/xxxx/s3sync/s3sync.rb:23:in `require': no such file to load -- md5 (LoadError)
        from /home/xxxx/s3sync/s3sync.rb:23:in `<module:S3sync>'
        from /home/xxxx/s3sync/s3sync.rb:11:in `<main>'
--------

Is there another module I need to install in addition to the standard Ruby 1.9.1?  I have seen many questions about the above error online, but have never seen an answer that actually addresses the problem Sad

Many thanks to anyone that can help!
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #1 on: January 12, 2010, 04:48:12 PM »

Sorry man I still have the 1.8.x ruby branch everywhere.  Anyone else?
Logged
falk0069
Newbie
*
Posts: 4


View Profile
« Reply #2 on: January 15, 2010, 09:27:45 PM »

Sounds like you are missing the md5.rb library file.  You should first verify you have it on your system. I too am running version 1.8.X and it is found on my system here:  /usr/lib/ruby/1.8/md5.rb

I read on a different forum that you may need to update line 23 of s3sync.rb from:
require 'md5'
to
require 'digest/md5'

because the md5.rb file is in the sub directory for ruby 1.9.

Hope that helps.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!