S3Sync.net

General Category => Questions => Topic started by: compuminus on January 12, 2010, 02:41:01 AM



Title: S3Sync & Ruby 1.9.1
Post by: compuminus 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 :(

Many thanks to anyone that can help!


Title: Re: S3Sync & Ruby 1.9.1
Post by: ferrix on January 12, 2010, 04:48:12 PM
Sorry man I still have the 1.8.x ruby branch everywhere.  Anyone else?


Title: Re: S3Sync & Ruby 1.9.1
Post by: falk0069 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.