[SOLUCIONADO] Paquetes mysql no se encuentran en Kali Linux 2.0 (DRADIS)

Iniciado por dr3x, Febrero 28, 2017, 12:32:40 AM

Tema anterior - Siguiente tema

0 Miembros y 1 Visitante están viendo este tema.

Febrero 28, 2017, 12:32:40 AM Ultima modificación: Febrero 28, 2017, 10:55:33 PM por Gabriela
Tratando de instalar en Kali Linux 2.0 ciertas dependencias con las que DRADIS trabaja y son necesarias:

libsqlite3-dev
mysql-server
mysql-client
libmysqlclient-dev
redis-serve

apt-get no encuentra mysql-server mysql-client libmysqlclient-dev en los repositorios (el sources.list está correctamente y el apt está actualizado)

Al parecer a esos paquetes les "sustituye" mariadb-server-10.1 pero he probado y no me sirve.

Y por lo tanto al hacer el bundle install salta el error :

Código: php
root@kalinux:~/Descargas/dradis-ce-master# bundle install
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break
this application for all non-root users on this machine.
fatal: Not a git repository (or any of the parent directories): .git
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies....
Using rake 12.0.0
Using RedCloth 4.3.1
Using concurrent-ruby 1.0.4
Using i18n 0.7.0
Using minitest 5.10.1
Using thread_safe 0.3.5
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using pkg-config 1.1.7
Using rack 2.0.1
Using nio4r 1.2.1
Using websocket-extensions 0.1.2
Using mime-types-data 3.2016.0521
Using arel 7.1.4
Using public_suffix 2.0.4
Using bcrypt 3.1.10
Using blankslate 2.1.2.4
Using sass 3.4.22
Using brakeman 3.4.1
Using uniform_notifier 1.10.0
Using bundler 1.13.6
Using thor 0.19.4
Using byebug 9.0.6
Using cancancan 1.15.0
Using chronic 0.10.2
Using cliver 0.3.2
Using coderay 1.1.1
Using coffee-script-source 1.12.2
Using execjs 2.7.0
Using method_source 0.8.2
Using database_cleaner 1.5.3
Using debug_inspector 0.0.2
Using diff-lcs 1.2.5
Using differ 0.1.2
Using multi_json 1.12.1
Using dradis-plugins 3.5.0
Using rubyzip 1.1.7
Using ffi 1.9.14
Using formatador 0.2.5
Using rb-fsevent 0.9.8
Using lumberjack 1.0.10
Using nenv 0.3.0
Using shellany 0.0.1
Using slop 3.6.0
Using guard-compat 1.2.1
Using rspec-support 3.5.0
Using image_size 1.3.1
Using json 1.8.2
Using kgio 2.11.0
Using libv8 3.16.14.17
Using mono_logger 1.1.0
Using mustermann 1.0.0.beta2
Installing mysql2 0.3.18 with native extensions
Using request_store 1.3.1
Using raindrops 0.17.0
Using redis 3.3.2
Using ref 2.0.0
Using tilt 2.0.5
Using rinku 2.0.2
Using sqlite3 1.3.12
Using timecop 0.8.1
Using turbolinks-source 5.0.0
Using tzinfo 1.2.2
Installing nokogiri 1.6.8 with native extensions
Using rack-test 0.6.3
Using rack-protection 2.0.0.beta2
Using sprockets 3.7.1
Using vegas 0.1.11
Using warden 1.2.6
Using websocket-driver 0.6.4
Using mime-types 3.1
Using addressable 2.5.0
Using parslet 1.4.0
Using bootstrap-sass 2.3.2.2
Using font-awesome-sass 4.3.2.1
Using bundler-audit 0.5.0
Using foreman 0.82.0
Using whenever 0.9.7
Using coffee-script 2.4.1
Using uglifier 3.0.4
Using dradis-projects 3.0.0
Using rb-inotify 0.9.7
Using notiffany 0.1.1
Using pry 0.10.4
Using rspec-core 3.5.4
Using rspec-expectations 3.5.0
Using rspec-mocks 3.5.0
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.3.0/gems/mysql2-0.3.18/ext/mysql2
/usr/bin/ruby2.3 -r ./siteconf20170228-15132-whf5vx.rb extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** 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/$(RUBY_BASE_NAME)2.3
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-nsllib
--without-nsllib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mygcclib
--without-mygcclib
--with-mysqlclientlib
--without-mysqlclientlib

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/mysql2-0.3.18/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/mysql2-0.3.18 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/mysql2-0.3.18/gem_make.out

An error occurred while installing mysql2 (0.3.18), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.18'` succeeds before bundling.


necesito esa versión de mysql en kali, de qué otra forma puedo instalarlo?

han retirado los paquetes para kali o tengo que utilizar otro repositorio adicional?

uso el q tienen en la web de documentación de kali oficial Kali Rolling

Código: php
deb http://http.kali.org/kali kali-rolling main contrib non-free

haz probado con esto apt-get install --only-upgrade bundler ?




No tienes permitido ver los links. Registrarse o Entrar a mi cuenta
haz probado con esto apt-get install --only-upgrade bundler ?

No lo he probado, pero no ha hecho falta, lo acabo de solucionar ahora mismo.

Pongo mi solución para el que se vea en las mismas que yo...

Aqui explica cómo añadir el repositorio de Mysql APT. No tienes permitido ver los links. Registrarse o Entrar a mi cuenta
Te descargas el paquete y sigues las instrucciones (para Kali tendrás que elegir Debian Wheezy ya que Kali Linux 1.0 era un derivado de Debian basado en Debian Wheezy. Por lo tanto, la mayoría de los paquetes de Kali se importaban sin modificar desde los repositorios de Debian. Eso cambió con Kali 2.0 que ya no usa los mismos repositorios)

Después, al intentar instalar las dependencias:

Código: php
apt-get install mysql-client mysql-server libmysqlclient-dev


Te sale un error de compatibilidad, asi que fuerzas la instalación indicando la versión del paquete (que vendrá indicado en el error) en este caso:

Código: php
apt-get install -f mysql-community-client=5.7.17-1debian7


Y listo, ya estarían instaladas las dependencias para mysql2 que necesita DRADIS.

Luego, a mi me ha  vuelto a pasar con Installing nokogiri 1.6.8 with native extensions al hacer el bundle install

Otra vez, necesitaba las dependencias pero esta vez sí están incluidas en el repositorio Kali Rolling, basta con:
Código: php
apt-get install ruby-dev zlib1g-dev liblzma-dev


Al final, una tontería.... GRACIAS por responder. Un saludo!


Yo ejecuté el procedimiento que digiste, pero no me funcionó... estoy buscando resolver de otra manera....