Metasploit mailing list archives

Re: Adding new gem to msf


From: egypt () metasploit com
Date: Mon, 17 Jan 2011 09:37:42 -0700

The cygwin installer isn't supported anymore.  With the new installer,
all you need to do is open a "System Console" from the Metasploit
start menu and type "gem install ..." which will install native win32
libraries when necessary.  It looks like that particular gem doesn't
have pre-built libraries on the gem server, so it's sort of a pain and
probably requires a compiler.

That being said, cygwin should be able to do it if you download the
ruby headers and put them into the expected path,
/usr/lib/ruby/include

Hope this helped,
egypt

On Sun, Jan 16, 2011 at 11:57 PM, Ty Miller <tyronmiller () gmail com> wrote:
Hey Jacob,

$ ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

Thx,
Ty


On Mon, Jan 17, 2011 at 11:09 AM, Jacob Hammack <jacob.hammack () hammackj com>
wrote:

Goto /usr/lib/ruby/gems/1.9.1/gems/base32-0.1.2/ext/
And type ruby extconf.rb
If that works type make. Send me the output from that

Sent from my Phone
On Jan 16, 2011, at 5:33 PM, Ty Miller <tyronmiller () gmail com> wrote:

Hey Jacob,

Thanks for the response ... unfortunatley not much ...

$ cat /usr/lib/ruby/gems/1.9.1/gems/base32-0.1.2/ext/gem_make.out
/usr/bin/ruby.exe extconf.rb install base32

Thx,
Ty


On Mon, Jan 17, 2011 at 9:39 AM, Jacob Hammack
<jacob.hammack () hammackj com> wrote:

What is the content of the gem_make.out file?

Sent from my Phone

On Jan 16, 2011, at 3:50 PM, Ty Miller <tyronmiller () gmail com> wrote:

Hey guys,

How do I add a new ruby gem to msf? I'm running Win7 64-bit. I ran a
msf cygwin shell as an administrator, and then ran the following:

$ gem install base32
Building native extensions.  This could take a while...
ERROR:  Error installing base32:
        ERROR: Failed to build gem native extension.

/usr/bin/ruby.exe extconf.rb install base32


Gem files will remain installed in
/usr/lib/ruby/gems/1.9.1/gems/base32-0.1.2 for inspection.
Results logged to
/usr/lib/ruby/gems/1.9.1/gems/base32-0.1.2/ext/gem_make.out
Updating class cache with 0 classes...


Thanks,
Ty


_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework



_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework


_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework


Current thread: