Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ sudo gem install tokyocabinet
- Building native extensions. This could take a while...
- ERROR: Error installing tokyocabinet:
- ERROR: Failed to build gem native extension.
- /usr/bin/ruby1.9.1 extconf.rb
- setting variables ...
- $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
- $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
- $libs = -ltokyocabinet -lbz2 -lz -lrt -lpthread -lm -lc
- checking for tcutil.h... *** 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=/usr/bin/ruby1.9.1
- --with-tokyocabinet-dir
- --without-tokyocabinet-dir
- --with-tokyocabinet-include
- --without-tokyocabinet-include=${tokyocabinet-dir}/include
- --with-tokyocabinet-lib
- --without-tokyocabinet-lib=${tokyocabinet-dir}/lib
- /usr/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
- You have to install development tools first.
- from /usr/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp'
- from /usr/lib/ruby/1.9.1/mkmf.rb:931:in `block in have_header'
- from /usr/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for'
- from /usr/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone'
- from /usr/lib/ruby/1.9.1/mkmf.rb:254:in `open'
- from /usr/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone'
- from /usr/lib/ruby/1.9.1/mkmf.rb:254:in `open'
- from /usr/lib/ruby/1.9.1/mkmf.rb:280:in `postpone'
- from /usr/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for'
- from /usr/lib/ruby/1.9.1/mkmf.rb:930:in `have_header'
- from extconf.rb:28:in `<main>'
- Gem files will remain installed in /var/lib/gems/1.9.1/gems/tokyocabinet-1.32.0 for inspection.
- Results logged to /var/lib/gems/1.9.1/gems/tokyocabinet-1.32.0/./gem_make.out
- rumbles@ds1.domain.com[/opt/duc]$ cat /var/lib/gems/1.9.1/gems/tokyocabinet-1.32.0/mkmf.log
- "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"
- /usr/bin/ld: cannot find -ltokyocabinet
- collect2: error: ld returned 1 exit status
- checked program was:
- /* begin */
- 1: #include "ruby.h"
- 2:
- 3: int main(int argc, char **argv)
- 4: {
- 5: return 0;
- 6: }
- /* end */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement