Advertisement
Guest User

Untitled

a guest
Nov 4th, 2016
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.51 KB | None | 0 0
  1. $ sudo gem install tokyocabinet
  2. Building native extensions. This could take a while...
  3. ERROR: Error installing tokyocabinet:
  4. ERROR: Failed to build gem native extension.
  5.  
  6. /usr/bin/ruby1.9.1 extconf.rb
  7. setting variables ...
  8. $CFLAGS = -I. -I/usr/include -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing -fPIC -O2
  9. $LDFLAGS = -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby1.9.1-1.9.3.484/debian/lib -rdynamic -Wl,-export-dynamic -L. -L/usr/lib/x86_64
  10. $libs = -ltokyocabinet -lbz2 -lz -lrt -lpthread -lm -lc
  11. checking for tcutil.h... *** extconf.rb failed ***
  12. Could not create Makefile due to some reason, probably lack of
  13. necessary libraries and/or headers. Check the mkmf.log file for more
  14. details. You may need configuration options.
  15.  
  16. Provided configuration options:
  17. --with-opt-dir
  18. --without-opt-dir
  19. --with-opt-include
  20. --without-opt-include=${opt-dir}/include
  21. --with-opt-lib
  22. --without-opt-lib=${opt-dir}/lib
  23. --with-make-prog
  24. --without-make-prog
  25. --srcdir=.
  26. --curdir
  27. --ruby=/usr/bin/ruby1.9.1
  28. --with-tokyocabinet-dir
  29. --without-tokyocabinet-dir
  30. --with-tokyocabinet-include
  31. --without-tokyocabinet-include=${tokyocabinet-dir}/include
  32. --with-tokyocabinet-lib
  33. --without-tokyocabinet-lib=${tokyocabinet-dir}/lib
  34. /usr/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
  35. You have to install development tools first.
  36. from /usr/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp'
  37. from /usr/lib/ruby/1.9.1/mkmf.rb:931:in `block in have_header'
  38. from /usr/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
  39. from /usr/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
  40. from /usr/lib/ruby/1.9.1/mkmf.rb:254:in `open'
  41. from /usr/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
  42. from /usr/lib/ruby/1.9.1/mkmf.rb:254:in `open'
  43. from /usr/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
  44. from /usr/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
  45. from /usr/lib/ruby/1.9.1/mkmf.rb:930:in `have_header'
  46. from extconf.rb:28:in `<main>'
  47.  
  48.  
  49. Gem files will remain installed in /var/lib/gems/1.9.1/gems/tokyocabinet-1.32.0 for inspection.
  50. Results logged to /var/lib/gems/1.9.1/gems/tokyocabinet-1.32.0/./gem_make.out
  51. rumbles@ds1.domain.com[/opt/duc]$ cat /var/lib/gems/1.9.1/gems/tokyocabinet-1.32.0/mkmf.log
  52. "gcc -o conftest -I/usr/include/ruby-1.9.1/x86_64-linux -I/usr/include/ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -I. -I/usr/include -Wall -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -fno-strict-aliasing -fPIC -O2 conftest.c -L. -L/usr/lib -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -L/build/buildd/ruby1.9.1-1.9.3.484/debian/lib -rdynamic -Wl,-export-dynamic -L. -L/usr/lib/x86_64 -ltokyocabinet -lbz2 -lz -lrt -lpthread -lm -lc -lruby-1.9.1 -lpthread -lrt -ldl -lcrypt -lm -lc"
  53. /usr/bin/ld: cannot find -ltokyocabinet
  54. collect2: error: ld returned 1 exit status
  55. checked program was:
  56. /* begin */
  57. 1: #include "ruby.h"
  58. 2:
  59. 3: int main(int argc, char **argv)
  60. 4: {
  61. 5: return 0;
  62. 6: }
  63. /* end */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement