Closed f8q closed 8 years ago
You are missing the ruby-dev package for your distro. I will leave this bug open to remind me to update the readme
ruby-dev is currently installed:
root@myYk5N6:~# apt show ruby-dev Package: ruby-dev Source: ruby-defaults Version: 1:2.1.5+deb8u2 Installed-Size: 33.8 kB Maintainer: Antonio Terceiro terceiro@debian.org Depends: ruby2.1-dev Homepage: http://www.ruby-lang.org/ Section: devel Priority: optional Download-Size: 8364 B APT-Manual-Installed: no APT-Sources: ftp://mirror.mirohost.net/debian/ stable/main amd64 Packages Description: Header files for compiling extension modules for Ruby (default version) Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in perl). It is simple, straight-forward, and extensible. . This package contains the header files and the mkmf library, necessary to make extension library for Ruby. It is also required to build many gems. . This package is a dependency package, which depends on Debian's default Ruby version (currently v2.1).
No idea, broken distro? Work fine on gentoo, debian, kali, and ubuntu... Not really sure what is wrong, looks like your compiler is broken
On Sep 5, 2016 15:20, "f8q" notifications@github.com wrote:
ruby-dev is currently installed.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pwnieexpress/blue_hydra/issues/71#issuecomment-244801697, or mute the thread https://github.com/notifications/unsubscribe-auth/ABl--dd3mLk972-W_ouvuWu6Pdqgol3Qks5qnGtpgaJpZM4J1Q6k .
This e-mail and any attachments are for the sole use of the intended recipients(s) and may be confidential. Use of any Pwnie Express product signifies your agreement to the Rapid Focus Security EULA https://www.pwnieexpress.com/wp-content/uploads/2015/06/Pwnie-Express-Terms-Conditions-EULA-clean-05-13-15-update-link-without-Quote-Page-2.pdf and is subject to export controls under the U.S. Commerce Department’s Export Administration Regulations (“EAR”).
Not really sure what is wrong, looks like your compiler is broken
You are right, i have missed:
apt-get install g++ make ruby-full
Hey, i have get the following, quote:
" andriy@myYk5N6:~/Downloads/git/blue_hydra$ bundle install Fetching gem metadata from http://rubygems.org/ Fetching version metadata from http://rubygems.org/ Resolving dependencies.... Using rake 11.2.2 Using addressable 2.4.0 Using coderay 1.1.1 Using diff-lcs 1.2.5 Using louis 2.0.4 Using method_source 0.8.2 Using slop 3.6.0 Using rspec-support 3.5.0 Using bundler 1.12.5 Using data_objects 0.10.17 Using dm-core 1.2.1 Using pry 0.10.4 Using rspec-core 3.5.3 Using rspec-expectations 3.5.0 Using rspec-mocks 3.5.0 Installing do_sqlite3 0.10.17 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
checking for sqlite3.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/ruby2.1 --with-sqlite3-dir --without-sqlite3-dir --with-sqlite3-include --without-sqlite3-include=${sqlite3-dir}/include --with-sqlite3-lib --without-sqlite3-lib=${sqlite3-dir}/lib /usr/lib/ruby/2.1.0/mkmf.rb:456:in'
try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/lib/ruby/2.1.0/mkmf.rb:587:in
try_cpp' from /usr/lib/ruby/2.1.0/mkmf.rb:1067:inblock in have_header' from /usr/lib/ruby/2.1.0/mkmf.rb:918:in
block in checking_for' from /usr/lib/ruby/2.1.0/mkmf.rb:351:inblock (2 levels) in postpone' from /usr/lib/ruby/2.1.0/mkmf.rb:321:in
open' from /usr/lib/ruby/2.1.0/mkmf.rb:351:inblock in postpone' from /usr/lib/ruby/2.1.0/mkmf.rb:321:in
open' from /usr/lib/ruby/2.1.0/mkmf.rb:347:inpostpone' from /usr/lib/ruby/2.1.0/mkmf.rb:917:in
checking_for' from /usr/lib/ruby/2.1.0/mkmf.rb:1066:inhave_header' from extconf.rb:26:in
extconf failed, exit code 1
Gem files will remain installed in /home/andriy/Downloads/git/blue_hydra/vendor/bundle/ruby/2.1.0/gems/do_sqlite3-0.10.17 for inspection. Results logged to /home/andriy/Downloads/git/blue_hydra/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0/do_sqlite3-0.10.17/gem_make.out Using dm-do-adapter 1.2.0 Using dm-migrations 1.2.0 Using dm-timestamps 1.2.0 Using dm-validations 1.2.0 Using rspec 3.5.0 An error occurred while installing do_sqlite3 (0.10.17), and Bundler cannot continue. Make sure that
gem install do_sqlite3 -v '0.10.17'
succeeds before bundling. andriy@myYk5N6:~/Downloads/git/blue_hydra$ gem install do_sqlite3 -v '0.10.17' ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /var/lib/gems/2.1.0 directory. andriy@myYk5N6:~/Downloads/git/blue_hydra$ su -l Пароль: su: Сбой при проверке подлинности andriy@myYk5N6:~/Downloads/git/blue_hydra$ su -l Пароль: root@myYk5N6:~# gem install do_sqlite3 -v '0.10.17' Building native extensions. This could take a while... ERROR: Error installing do_sqlite3: ERROR: Failed to build gem native extension.checking for sqlite3.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/ruby2.1 --with-sqlite3-dir --without-sqlite3-dir --with-sqlite3-include --without-sqlite3-include=${sqlite3-dir}/include --with-sqlite3-lib --without-sqlite3-lib=${sqlite3-dir}/lib /usr/lib/ruby/2.1.0/mkmf.rb:456:in'
try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/lib/ruby/2.1.0/mkmf.rb:587:in
try_cpp' from /usr/lib/ruby/2.1.0/mkmf.rb:1067:inblock in have_header' from /usr/lib/ruby/2.1.0/mkmf.rb:918:in
block in checking_for' from /usr/lib/ruby/2.1.0/mkmf.rb:351:inblock (2 levels) in postpone' from /usr/lib/ruby/2.1.0/mkmf.rb:321:in
open' from /usr/lib/ruby/2.1.0/mkmf.rb:351:inblock in postpone' from /usr/lib/ruby/2.1.0/mkmf.rb:321:in
open' from /usr/lib/ruby/2.1.0/mkmf.rb:347:inpostpone' from /usr/lib/ruby/2.1.0/mkmf.rb:917:in
checking_for' from /usr/lib/ruby/2.1.0/mkmf.rb:1066:inhave_header' from extconf.rb:26:in
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.1.0/gems/do_sqlite3-0.10.17 for inspection. Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/do_sqlite3-0.10.17/gem_make.out root@myYk5N6:~# cat /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/do_sqlite3-0.10.17/gem_make.out /usr/bin/ruby2.1 extconf.rb checking for sqlite3.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/ruby2.1 --with-sqlite3-dir --without-sqlite3-dir --with-sqlite3-include --without-sqlite3-include=${sqlite3-dir}/include --with-sqlite3-lib --without-sqlite3-lib=${sqlite3-dir}/lib /usr/lib/ruby/2.1.0/mkmf.rb:456:in'
try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/lib/ruby/2.1.0/mkmf.rb:587:in
try_cpp' from /usr/lib/ruby/2.1.0/mkmf.rb:1067:inblock in have_header' from /usr/lib/ruby/2.1.0/mkmf.rb:918:in
block in checking_for' from /usr/lib/ruby/2.1.0/mkmf.rb:351:inblock (2 levels) in postpone' from /usr/lib/ruby/2.1.0/mkmf.rb:321:in
open' from /usr/lib/ruby/2.1.0/mkmf.rb:351:inblock in postpone' from /usr/lib/ruby/2.1.0/mkmf.rb:321:in
open' from /usr/lib/ruby/2.1.0/mkmf.rb:347:inpostpone' from /usr/lib/ruby/2.1.0/mkmf.rb:917:in
checking_for' from /usr/lib/ruby/2.1.0/mkmf.rb:1066:inhave_header' from extconf.rb:26:in
extconf failed, exit code 1 root@myYk5N6:~# cat /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/do_sqlite3-0.10.17/mkmf.log "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -I/usr/local/include -I/opt/local/include -I/usr/include -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wall -DHAVE_NO_DATETIME_NEWBANG conftest.c -L. -L/usr/lib/x8664-linux-gnu -L/usr/local/lib -L/opt/local/lib -L/usr/lib -L. -Wl,-z,relro -L/build/ruby2.1-bDDI0O/ruby2.1-2.1.5/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin / 1: #include "ruby.h" 2: 3: int main(int argc, char _argv) 4: { 5: return 0; 6: } /* end /
root@myYk5N6:~# "
What have to be done for
gem install do_sqlite3 -v '0.10.17'
had successed?