S3Sync.net
February 02, 2014, 01:30:07 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 error with ruby 1.8.7 - SOLVED!  (Read 3723 times)
TeckniX
Newbie
*
Posts: 6


View Profile
« on: June 12, 2008, 03:57:31 PM »

I have two machines with ruby and s3sync installed.

One has ruby 1.8.6 and can run s3sync without any problems
The other has ruby 1.8.7 and can't run s3sync commands - it outputs the following:
Code:
./s3cmd.rb listbuckets
./S3.rb:14:in `require': no such file to load -- openssl (LoadError)
        from ./S3.rb:14
        from ./s3try.rb:26:in `require'
        from ./s3try.rb:26
        from ./s3cmd.rb:16:in `require'
        from ./s3cmd.rb:16
I've read from a previous post that libopenssl-ruby was 'needed' yet I never had to install it on the other machine, which is a carbon copy of this one. The only difference between the two is the version of Ruby.

Anyone else experiencing this?
« Last Edit: June 13, 2008, 02:50:46 PM by TeckniX » Logged
TeckniX
Newbie
*
Posts: 6


View Profile
« Reply #1 on: June 13, 2008, 02:50:16 PM »

My original issue was using 1.8.7 and my ssl not working.
I chanced it and compiled 1.8.6 and installed it, which seems to have overwritten the 1.8.7 since i'm now showing 1.8.6 as the ruby version.
What's beyond my understanding is that every document says it's built with ssl support by default, yet mine never worked.
I finally found a blog from someone creating solaris packages, explaining that separate extensions could be compiled after wards, as follow:
- in the ruby source directory type:
Code:
[ruby-1.8.6]#cd ext/openssl
- there's a ruby file 'extconf.rb' that can be ran as such:
Code:
[ruby-1.8.6]#ruby extconf.rb
- ruby will build a Makefile that will be needed to build the libraries:
Code:
[ruby-1.8.6]#make
[ruby-1.8.6]#make install
That's it! Now where is this information in the README? I didn't think to look in the documentation, but some google of ruby openssl really didn't show anything at all.
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!