couchrest icon indicating copy to clipboard operation
couchrest copied to clipboard

base64 error with ruby1.9

Open benoitc opened this issue 15 years ago • 5 comments

on Ubuntu 9.04 jaunty with ruby 1.9.0 (2008-06-20 revision 17482) I get the error : /var/lib/gems/1.9.0/gems/couchrest-0.33/lib/couchrest/core/database.rb:2:in require': no such file to load -- base64 (LoadError) from /var/lib/gems/1.9.0/gems/couchrest-0.33/lib/couchrest/core/database.rb:2:in<top (required)>' from /var/lib/gems/1.9.0/gems/couchrest-0.33/lib/couchrest/core/server.rb:53:in database' from /var/lib/gems/1.9.0/gems/couchrest-0.33/lib/couchrest/core/server.rb:59:indatabase!' from /var/lib/gems/1.9.0/gems/couchrest-0.33/lib/couchrest.rb:138:in database!' from /usr/local/aimpl-version/aimpl/scripts/make_pl.rb:6:in

'

benoitc avatar Dec 11 '09 14:12 benoitc

Update to newer version of Ruby 1.9.1

deepj avatar Dec 11 '09 15:12 deepj

yes this is definitly what I had to do though most of current distribution don't have ruby 1.9.1

benoitc avatar Dec 11 '09 15:12 benoitc

You should use Array.pack and string.unpack "m"

Greetings, Johannes

jo avatar Dec 11 '09 15:12 jo

i installed ruby 1.9.1 (easier way in time limited). But anyway I'm not sure couchrest should require 1.9.1 actually. very little linux distribution have it in stable.

benoitc avatar Dec 13 '09 20:12 benoitc

I meant couchrest could use Array.pack("m*") instead of using Base64.encode64 to obviate that version dependency.

http://www.ruby-forum.com/topic/132076

Greetings Johannes

jo avatar Dec 13 '09 21:12 jo