<br><br><div class="gmail_quote">On Fri, Jun 8, 2012 at 11:08 PM, Jeremy Lavergne <span dir="ltr"><<a href="mailto:jeremy@lavergne.gotdns.org" target="_blank">jeremy@lavergne.gotdns.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

>   rb-rubygems @1.3.7_0+ruby (active)<br>
<br>
So your gems are ruby are presumably 1.8.7 and your binary is ruby 1.9.3.<br></blockquote><div><br>Yes , I uninstalled rubygems and added rb-rubygems + ruby19<br><br>jaspersmbp:wpscan jasper$ sudo port install rb-rubygems +ruby19<br>

--->  Fetching archive for libffi<br>--->  Attempting to fetch libffi-3.0.11_0+universal.darwin_11.i386-x86_64.tbz2 from <a href="http://packages.macports.org/libffi">http://packages.macports.org/libffi</a><br>--->  Fetching distfiles for libffi<br>

--->  Attempting to fetch libffi-3.0.11.tar.gz from <a href="http://jog.id.distfiles.macports.org/macports/mpdistfiles/libffi">http://jog.id.distfiles.macports.org/macports/mpdistfiles/libffi</a><br>--->  Verifying checksum(s) for libffi<br>

-------------------- cut  ----------------------------<br>--->  Fetching distfiles for rb-rubygems<br>--->  Verifying checksum(s) for rb-rubygems<br>--->  Extracting rb-rubygems<br>--->  Applying patches to rb-rubygems<br>

--->  Configuring rb-rubygems<br>--->  Building rb-rubygems<br>--->  Staging rb-rubygems into destroot<br>--->  Installing rb-rubygems @1.3.7_0+ruby19<br>--->  Activating rb-rubygems @1.3.7_0+ruby19<br>--->  Cleaning rb-rubygems<br>

--->  Updating database of binaries: 100.0%<br>--->  Scanning binaries for linking errors: 100.0%<br>--->  Found 717 broken file(s), matching files to ports<br>--->  Found 110 broken port(s), determining rebuild order<br>

--->  Rebuilding in order<br>     glib2 @2.32.3 +universal<br><br>Then I found out I all of the sudden had many broken ports and glib2 failed to build. Deactivated libelf and upgraded outdated. Will have to see if I can rid of libelf. It is a pain every upgrade I do. But it depends on four ports that depend on several others. Seems to be rather complicated..<br>

<br>jaspersmbp:wpscan jasper$ port echo depends:libelf<br>bug-buddy                       <br>dynamips                        <br>dynamips-devel                  <br>mspdebug                        <br>jaspersmbp:wpscan jasper$ port echo depends:bug-buddy<br>

gnome-desktop-suite             <br>gnome-python-desktop         <br><br>Then building Kerberos I had another conflict:<br><br>--->  Computing dependencies for kerberos5<br>Error: Unable to exec port: Can't install kerberos5 because conflicting ports are installed: e2fsprogs<br>

To report a bug, follow the instructions in the guide:<br>    <a href="http://guide.macports.org/#project.tickets">http://guide.macports.org/#project.tickets</a><br><br>I deactivated e2fsprogs and continued<br><br>In the meanwhile I tested wpscan with newly added alias and newly built rb-gems and got another error:<br>

<br>ruby wpscan.rb<br>[ERROR] dlopen(/opt/local/lib/ruby/gems/1.8/gems/ffi-1.0.11/lib/ffi_c.bundle, 9): Library not loaded: /opt/local/lib/libffi.5.dylib<br>  Referenced from: /opt/local/lib/ruby/gems/1.8/gems/ffi-1.0.11/lib/ffi_c.bundle<br>

  Reason: image not found - /opt/local/lib/ruby/gems/1.8/gems/ffi-1.0.11/lib/ffi_c.bundle<br><br>so I installed that one again as well as typhoeus. Still no joy:<br><br>jaspersmbp:wpscan jasper$ sudo uninstall typhoeus<br>

Preparing Uninstall...<br>^Cjaspersmbp:wpscan jasper$ sudo gem uninstall typhoeus<br>Successfully uninstalled typhoeus-0.4.2<br>jaspersmbp:wpscan jasper$ sudo gem install typhoeus<br>Successfully installed typhoeus-0.4.2<br>

1 gem installed<br>Installing ri documentation for typhoeus-0.4.2...<br>Installing RDoc documentation for typhoeus-0.4.2...<br>jaspersmbp:wpscan jasper$ ruby wpscan.rb<br>[ERROR] cannot load such file -- typhoeus<br>[TIP] Try to run 'gem install typhoeus' or 'gem install --user-install typhoeus'. If you still get an error, Please see README file or <a href="http://code.google.com/p/wpscan/">http://code.google.com/p/wpscan/</a><br>

<br>When I installed typhoeus in a different way I found out Gem is still using Ruby 1.8:<br><br>jaspersmbp:wpscan jasper$ sudo gem install --user-install typhoeus<br>/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/installer.rb:127: warning: Insecure world writable dir /usr/local in PATH, mode 040777<br>

WARNING:  You don't have /Users/jasper/.gem/ruby/1.8/bin in your PATH,<br>      gem executables will not run.<br>Successfully installed typhoeus-0.4.2<br>1 gem installed<br>Installing ri documentation for typhoeus-0.4.2...<br>

Installing RDoc documentation for typhoeus-0.4.2...<br><br>I  don't get it..<br><br><br><br><br><br><br><br><br><br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


$ port variants rb-rubygems<br>
rb-rubygems has the variants:<br>
[+]ruby: add Ruby 1.8.7 support<br>
     * conflicts with ruby186 ruby19<br>
   ruby186: add Ruby 1.8.6 support<br>
     * conflicts with ruby ruby19<br>
   ruby19: add Ruby 1.9 support<br>
     * conflicts with ruby ruby186<br>
<br>
</blockquote></div><br>