Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base64 error with ruby1.9 #3

Open
benoitc opened this issue Dec 11, 2009 · 5 comments
Open

base64 error with ruby1.9 #3

benoitc opened this issue Dec 11, 2009 · 5 comments

Comments

@benoitc
Copy link

benoitc commented Dec 11, 2009

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

'

@deepj
Copy link
Contributor

deepj commented Dec 11, 2009

Update to newer version of Ruby 1.9.1

@benoitc
Copy link
Author

benoitc commented Dec 11, 2009

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

@jo
Copy link

jo commented Dec 11, 2009

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

Greetings,
Johannes

@benoitc
Copy link
Author

benoitc commented Dec 13, 2009

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.

@jo
Copy link

jo commented Dec 13, 2009

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants