arthurnn / memcached

A Ruby interface to the libmemcached C client
Academic Free License v3.0
432 stars 125 forks source link

Doesn't build on ubuntu 11.04 #41

Closed mcollina closed 13 years ago

mcollina commented 13 years ago

This gem doesn't install on ubuntu 11.04.

I think the relavant part of the error is: extconf.rb:56:in check_libmemcached': 'patch -p1 -Z < sasl.patch' failed (RuntimeError) from extconf.rb:34:inchdir' from extconf.rb:34:in `check_libmemcached' from extconf.rb:101

Tell me if you need more details.

n8 commented 13 years ago

Darn, I'm having the same issue on Cent OS 5 as well.

n8 commented 13 years ago

Ah, I guess i didn't have libsasl-dev installed like the instructions state. On CentOS it's oddly named. You can install it with:

yum install cyrus-sasl-devel

Now the gem installed without a hitch.

zakmandhro commented 13 years ago

To fix this on Ubuntu, remove the broken/partial gem install: rm -rf $GEM_PATH/gems/memcached-1.2.5

then install the required SASL2 development package: sudo apt-get install libsasl2-dev

and reinstall the gem gem install memcached