Metasploit mailing list archives
Re: Adding new gem to msf
From: Brian <briaar () gmail com>
Date: Mon, 17 Jan 2011 17:17:54 -0700
Ty, why use cygwin for devel? I take it you're on Windows? Grab a copy of Virtual Box (free) and download the backtrack 4 r2 distro / use install.sh on the desktop / msfupdate. Everything will work out of the box and be nicely laid out for metasploit devel. -Brian On Mon, Jan 17, 2011 at 4:47 PM, Ty Miller <tyronmiller () gmail com> wrote:
Hey guys, Thanks for the help. I have searched around for the ruby headers, but I can only find references to installing ruby-dev or ruby-devel packages on Linux distros. Any idea where I get the ruby headers that I can use with cygwin? Thx, Ty On Tue, Jan 18, 2011 at 3:37 AM, <egypt () metasploit com> wrote: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
_______________________________________________ https://mail.metasploit.com/mailman/listinfo/framework
Current thread:
- Adding new gem to msf Ty Miller (Jan 16)
- Message not available
- Re: Adding new gem to msf Ty Miller (Jan 16)
- Message not available
- Re: Adding new gem to msf Ty Miller (Jan 16)
- Re: Adding new gem to msf egypt (Jan 17)
- Re: Adding new gem to msf Ty Miller (Jan 17)
- Re: Adding new gem to msf Brian (Jan 17)
- Re: Adding new gem to msf Ty Miller (Jan 17)
- Re: Adding new gem to msf Ty Miller (Jan 18)
- Re: Adding new gem to msf Ty Miller (Jan 16)
- Message not available