[Ruby] gem mysql installations problem

Dieses Thema im Forum "Linux & BSD" wurde erstellt von Alex², 4. September 2010 .

Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 4. September 2010
    Code:
    msf > gem install mysql
    
    [*] exec: gem install mysql
     
    Building native extensions. This could take a while...
    ERROR: Error installing mysql:
     ERROR: Failed to build gem native extension.
     
    /opt/metasploit3/app/ruby extconf.rb
    checking for mysql_ssl_set()... *** 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=/opt/metasploit3/app/ruby
     --with-mysql-config
     --without-mysql-config
    /opt/metasploit3/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed to generate an executable file. (RuntimeError)
    You have to install development tools first.
     from /opt/metasploit3/lib/ruby/1.9.1/mkmf.rb:415:in `try_link0'
     from /opt/metasploit3/lib/ruby/1.9.1/mkmf.rb:419:in `try_link'
     from /opt/metasploit3/lib/ruby/1.9.1/mkmf.rb:527:in `try_func'
     from /opt/metasploit3/lib/ruby/1.9.1/mkmf.rb:772:in `block in have_func'
     from /opt/metasploit3/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking_for'
     from /opt/metasploit3/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in postpone'
     from /opt/metasploit3/lib/ruby/1.9.1/mkmf.rb:248:in `open'
     from /opt/metasploit3/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone'
     from /opt/metasploit3/lib/ruby/1.9.1/mkmf.rb:248:in `open'
     from /opt/metasploit3/lib/ruby/1.9.1/mkmf.rb:270:in `postpone'
     from /opt/metasploit3/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for'
     from /opt/metasploit3/lib/ruby/1.9.1/mkmf.rb:771:in `have_func'
     from extconf.rb:50:in `<main>'
     
     
    Gem files will remain installed in /opt/metasploit3/lib/ruby/gems/1.9.1/gems/mysql-2.8.1 for inspection.
    Results logged to /opt/metasploit3/lib/ruby/gems/1.9.1/gems/mysql-2.8.1/ext/mysql_api/gem_make.out
    Code:
    msf > ruby --version
    
    [*] exec: ruby --version
     
    ruby 1.9.1p243 (2009-07-16) [i686-linux]
    
    msf > uname -a
    
    [*] exec: uname -a
     
    Linux localhost 2.6.35-ARCH #1 SMP PREEMPT Fri Aug 27 16:22:18 UTC 2010 i686 Intel(R) Core(TM)2 Duo CPU T5800 @ 2.00GHz GenuineIntel GNU/Linux
    
    msf > pacman -Q | grep mysql
    
    [*] exec: pacman -Q | grep mysql
     
    libmysqlclient 5.1.50-1
    mysql 5.1.50-1
    mysql-clients 5.1.50-1
    mysql-ruby 2.8.2-1
    
    msf > pacman -Q | grep ruby
    
    [*] exec: pacman -Q | grep ruby
     
    mysql-ruby 2.8.2-1
    ruby 1.9.2_p0-3
    
    msf > pacman -Q | grep header
    
    [*] exec: pacman -Q | grep header
     
    kernel26-headers 2.6.35.4-1
    linux-api-headers 2.6.34-1
    Damit sollte mein Problem soweit erklärt und alle nötigen Informationen gegeben sein.
    Sämtliche mkmf.log Dateien sind übrigens leer.

    Das Paket "libmysqlclient" ist auch vorhanden.

    Achja:
    Die Switches: with-mysql-config und with-mysql-dir habe ich schon getestet.
     
  2. 5. September 2010
    AW: [Ruby] gem mysql installations problem

    Hast du das Paket "base-devel" installiert? Das stellt die Buildtools unter Arch zur Verfügung.
     
  3. 5. September 2010
    AW: [Ruby] gem mysql installations problem

    Ja, habe ich. Aber du hast mir die Lösung ja gerade per Jabber geschrieben:

    man muss das außerhalb der msfconsole ausführen :lol:

    Manchmal sind die einfachen Lösungen die besten
     
  4. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.