Skip to content

Instantly share code, notes, and snippets.

@gabewb
Created September 27, 2010 17:22
Show Gist options
  • Save gabewb/599420 to your computer and use it in GitHub Desktop.
Save gabewb/599420 to your computer and use it in GitHub Desktop.
Gabriel-Warshauer-Bakers-MacBook-Pro:~ gabewb$ sudo gem install memcached Building native extensions. This could take a while...
ERROR: Error installing memcached:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
Building libmemcached.
tar xzf libmemcached-0.32.tar.gz 2>&1
Patching libmemcached source.
patch -p1 -Z < libmemcached.patch
patching file libmemcached-0.32/libmemcached/memcached_response.c
Not setting time of file libmemcached-0.32/libmemcached/memcached_response.c (time mismatch)
patching file libmemcached-0.32/libmemcached/memcached.c
Not setting time of file libmemcached-0.32/libmemcached/memcached.c (time mismatch)
patching file libmemcached-0.32/libmemcached/memcached.h
Not setting time of file libmemcached-0.32/libmemcached/memcached.h (time mismatch)
patching file libmemcached-0.32/libmemcached/memcached_connect.c
Not setting time of file libmemcached-0.32/libmemcached/memcached_connect.c (time mismatch)
patching file libmemcached-0.32/libmemcached/memcached_hash.c
Not setting time of file libmemcached-0.32/libmemcached/memcached_hash.c (time mismatch)
patching file libmemcached-0.32/libmemcached/memcached_hosts.c
Not setting time of file libmemcached-0.32/libmemcached/memcached_hosts.c (time mismatch)
patching file libmemcached-0.32/libmemcached/memcached_storage.c
Not setting time of file libmemcached-0.32/libmemcached/memcached_storage.c (time mismatch)
Patching libmemcached with SASL support.
patch -p1 -Z < sasl.patch
patching file libmemcached-0.32/aclocal.m4
patching file libmemcached-0.32/clients/client_options.h
patching file libmemcached-0.32/clients/Makefile.am
patching file libmemcached-0.32/clients/Makefile.in
patching file libmemcached-0.32/clients/memcat.c
patching file libmemcached-0.32/clients/memcp.c
patching file libmemcached-0.32/clients/memdump.c
patching file libmemcached-0.32/clients/memflush.c
patching file libmemcached-0.32/clients/memrm.c
patching file libmemcached-0.32/clients/memslap.c
patching file libmemcached-0.32/clients/utilities.c
patching file libmemcached-0.32/clients/utilities.h
The next patch would create the file libmemcached-0.32/config/config.rpath,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file libmemcached-0.32/config/config.rpath.rej
patching file libmemcached-0.32/config.h.in
patching file libmemcached-0.32/configure
patching file libmemcached-0.32/configure.ac
patching file libmemcached-0.32/docs/Makefile.am
patching file libmemcached-0.32/docs/Makefile.in
The next patch would create the file libmemcached-0.32/docs/memcached_sasl.pod,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file libmemcached-0.32/docs/memcached_sasl.pod.rej
patching file libmemcached-0.32/libmemcached/Makefile.am
patching file libmemcached-0.32/libmemcached/Makefile.in
patching file libmemcached-0.32/libmemcached/memcached/protocol_binary.h
patching file libmemcached-0.32/libmemcached/memcached_configure.h
patching file libmemcached-0.32/libmemcached/memcached_configure.h.in
patching file libmemcached-0.32/libmemcached/memcached_connect.c
Not setting time of file libmemcached-0.32/libmemcached/memcached_connect.c (time mismatch)
patching file libmemcached-0.32/libmemcached/memcached_constants.h
patching file libmemcached-0.32/libmemcached/memcached.h
Not setting time of file libmemcached-0.32/libmemcached/memcached.h (time mismatch)
patching file libmemcached-0.32/libmemcached/memcached_response.c
Not setting time of file libmemcached-0.32/libmemcached/memcached_response.c (time mismatch)
The next patch would create the file libmemcached-0.32/libmemcached/memcached_sasl.c,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file libmemcached-0.32/libmemcached/memcached_sasl.c.rej
The next patch would create the file libmemcached-0.32/libmemcached/memcached_sasl.h,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file libmemcached-0.32/libmemcached/memcached_sasl.h.rej
patching file libmemcached-0.32/libmemcached/memcached_strerror.c
patching file libmemcached-0.32/libmemcachedutil/Makefile.in
The next patch would create the file libmemcached-0.32/m4/pandora_have_sasl.m4,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file libmemcached-0.32/m4/pandora_have_sasl.m4.rej
patching file libmemcached-0.32/Makefile.in
patching file libmemcached-0.32/support/Makefile.in
patching file libmemcached-0.32/tests/function.c
patching file libmemcached-0.32/tests/Makefile.in
The next patch would create the file libmemcached-0.32/tests/output.cmp,
which already exists! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file libmemcached-0.32/tests/output.cmp.rej
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb:56:in `check_libmemcached': 'patch -p1 -Z < sasl.patch' failed (RuntimeError)
from extconf.rb:34:in `chdir'
from extconf.rb:34:in `check_libmemcached'
from extconf.rb:101
Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/memcached-1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/memcached-1/ext/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment