I did the following: jaspersmbp:wpscan jasper$ sudo ln -s /opt/local/bin/ruby1.9 /opt/local/bin/ruby ln: /opt/local/bin/ruby: File exists
did not work. So tried an alias: jaspersmbp:wpscan jasper$ alias ruby='/opt/local/bin/ruby1.9' jaspersmbp:wpscan jasper$ ruby -v ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11] all good. Then I ran wpscan again and did not get a warning I was using ruby <1.9, but I got a warning the gems were not OK: jaspersmbp:wpscan jasper$ ruby wpscan.rb --url http://www.bakfiets-en-meer.nl [ERROR] cannot load such file -- typhoeus [TIP] Try to run 'gem install typhoeus' or 'gem install --user-install typhoeus'. If you still get an error, Please see README file or http://code.google.com/p/wpscan/ So I did: jaspersmbp:wpscan jasper$ sudo gem install typhoeus Fetching: ffi-1.0.11.gem (100%) Building native extensions. This could take a while... Fetching: typhoeus-0.4.0.gem (100%) Successfully installed ffi-1.0.11 Successfully installed typhoeus-0.4.0 2 gems installed Installing ri documentation for ffi-1.0.11... Installing ri documentation for typhoeus-0.4.0... Installing RDoc documentation for ffi-1.0.11... Installing RDoc documentation for typhoeus-0.4.0... But I still got the same error: jaspersmbp:wpscan jasper$ ruby wpscan.rb --url http://www.bakfiets-en-meer.nl [ERROR] cannot load such file -- typhoeus [TIP] Try to run 'gem install typhoeus' or 'gem install --user-install typhoeus'. If you still get an error, Please see README file or http://code.google.com/p/wpscan/ Is gems perhaps not connected to rb19 ? On Fri, Jun 8, 2012 at 9:49 PM, Jasper Frumau <[email protected]>wrote: > How can I make Ruby port 1.9 default instead of ruby 1.8.7? > > FYI > > jaspersmbp:etc jasper$ ruby --version > ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-darwin11] > > port installed | grep ruby > rb-rubygems @1.3.7_0+ruby (active) > ruby @1.8.7-p358_0+thread_hooks (active) > ruby19 @1.9.3-p194_1+doc (active) > > jaspersmbp:etc jasper$ port installed | grep rb19 > rb19-abstract @1.0.0_0 (active) > rb19-actionmailer @3.0.5_0 (active) > rb19-actionpack @3.0.5_0 (active) > rb19-activemodel @3.0.5_0 (active) > rb19-activerecord @3.0.5_0 (active) > rb19-activeresource @3.0.5_0 (active) > ------------ cut --------------------------- > > >
_______________________________________________ macports-users mailing list [email protected] http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
