Guest User

Untitled

a guest
May 16th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. # sudo gem install memcached --no-rdoc --no-ri
  2. Building native extensions. This could take a while...
  3. ERROR: Error installing memcached:
  4. ERROR: Failed to build gem native extension.
  5.  
  6. /usr/local/bin/ruby18 extconf.rb install memcached --no-rdoc --no-ri
  7. checking for memcached_server_add() in -lmemcached... yes
  8. checking for #include <libmemcached/memcached.h>
  9. ... no
  10. *** extconf.rb failed ***
  11. Could not create Makefile due to some reason, probably lack of
  12. necessary libraries and/or headers. Check the mkmf.log file for more
  13. details. You may need configuration options.
  14.  
  15. Provided configuration options:
  16. --with-opt-dir
  17. --without-opt-dir
  18. --with-opt-include
  19. --without-opt-include=${opt-dir}/include
  20. --with-opt-lib
  21. --without-opt-lib=${opt-dir}/lib
  22. --with-make-prog
  23. --without-make-prog
  24. --srcdir=.
  25. --curdir
  26. --ruby=/usr/local/bin/ruby18
  27. --with-rlibmemcached-dir
  28. --without-rlibmemcached-dir
  29. --with-rlibmemcached-include
  30. --without-rlibmemcached-include=${rlibmemcached-dir}/include
  31. --with-rlibmemcached-lib
  32. --without-rlibmemcached-lib=${rlibmemcached-dir}/lib
  33. --with-memcachedlib
  34. --without-memcachedlib
  35. extconf.rb:31: header file 'Object' not found (RuntimeError)
  36. from extconf.rb:25:in `each'
  37. from extconf.rb:25
  38.  
  39.  
  40. Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/memcached-0.9 for inspection.
  41. Results logged to /usr/local/lib/ruby/gems/1.8/gems/memcached-0.9/ext/gem_make.out
  42.  
  43.  
  44. # cat /usr/local/lib/ruby/gems/1.8/gems/memcached-0.9/ext/mkmf.log
  45. find_library: checking for memcached_server_add() in -lmemcached... -------------------- yes
  46.  
  47. "cc -o conftest -I. -I/usr/local/lib/ruby/1.8/amd64-freebsd7 -I. -fno-strict-aliasing -pipe -fPIC -O3 conftest.c -L'.' -L'/usr/local/lib' -Wl,-R'/usr/local/lib' -L. -rdynamic -lruby18-static -lmemcached -lcrypt -lm -rpath=/usr/lib:/usr/local/lib -pthread -lc"
  48. conftest.c: In function 't':
  49. conftest.c:3: error: 'memcached_server_add' undeclared (first use in this function)
  50. conftest.c:3: error: (Each undeclared identifier is reported only once
  51. conftest.c:3: error: for each function it appears in.)
  52. checked program was:
  53. /* begin */
  54. 1: /*top*/
  55. 2: int main() { return 0; }
  56. 3: int t() { void ((*volatile p)()); p = (void ((*)()))memcached_server_add; return 0; }
  57. /* end */
  58.  
  59. "cc -o conftest -I. -I/usr/local/lib/ruby/1.8/amd64-freebsd7 -I. -fno-strict-aliasing -pipe -fPIC -O3 conftest.c -L'.' -L'/usr/local/lib' -Wl,-R'/usr/local/lib' -L. -rdynamic -lruby18-static -lmemcached -lcrypt -lm -rpath=/usr/lib:/usr/local/lib -pthread -lc"
  60. checked program was:
  61. /* begin */
  62. 1: /*top*/
  63. 2: int main() { return 0; }
  64. 3: int t() { memcached_server_add(); return 0; }
  65. /* end */
  66.  
  67. --------------------
  68.  
  69. find_header: checking for #include <libmemcached/memcached.h>
  70. ... -------------------- no
  71.  
  72. "cc -E -I. -I/usr/local/lib/ruby/1.8/amd64-freebsd7 -I. -fno-strict-aliasing -pipe -fPIC -O3 conftest.c -o conftest.i"
  73. conftest.c:1:36: error: libmemcached/memcached.h: No such file or directory
  74. checked program was:
  75. /* begin */
  76. 1: #include <libmemcached/memcached.h>
  77. /* end */
  78.  
  79. --------------------
Add Comment
Please, Sign In to add comment