Guest User

Untitled

a guest
Mar 10th, 2012
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. root@accuvantlabs:/opt/metasploit/msf3# msfconsole
  2. [-] Failed to connect to the database: Please install the postgresql adapter: `gem install activerecord-postgresql-adapter` (no such file to load -- pg_ext) {"adapter"=>"postgresql", "database"=>"msf3dev", "username"=>"msf3", "password"=>"20394965", "port"=>7337, "host"=>"localhost", "pool"=>256, "timeout"=>5} ["/opt/metasploit/msf3/lib/active_record/connection_adapters/abstract/connection_specification.rb:76:in `rescue in rescue in establish_connection'", "/opt/metasploit/msf3/lib/active_record/connection_adapters/abstract/connection_specification.rb:73:in `rescue in establish_connection'", "/opt/metasploit/msf3/lib/active_record/connection_adapters/abstract/connection_specification.rb:68:in `establish_connection'", "/opt/metasploit/msf3/lib/msf/core/db_manager.rb:155:in `connect'", "/opt/metasploit/msf3/lib/msf/ui/console/driver.rb:195:in `initialize'", "/opt/metasploit/msf3/msfconsole:134:in `new'", "/opt/metasploit/msf3/msfconsole:134:in `<main>'"]
  3.  
  4. , ,
  5. / \
  6. ((__---,,,---__))
  7. (_) O O (_)_________
  8. \ _ / |\
  9. o_o \ M S F | \
  10. \ _____ | *
  11. ||| WW|||
  12. ||| |||
  13.  
  14.  
  15. =[ metasploit v4.3.0-dev [core:4.3 api:1.0]
  16. + -- --=[ 813 exploits - 458 auxiliary - 137 post
  17. + -- --=[ 247 payloads - 27 encoders - 8 nops
  18. =[ svn r14910 updated today (2012.03.10)
  19.  
  20. msf > gem install pg -- --with-pg-config=/opt/metasploit/postgresql/bin/pg_config
  21. [*] exec: gem install pg -- --with-pg-config=/opt/metasploit/postgresql/bin/pg_config
  22.  
  23. Building native extensions. This could take a while...
  24. ERROR: Error installing pg:
  25. ERROR: Failed to build gem native extension.
  26.  
  27. /opt/metasploit/ruby/bin/ruby extconf.rb --with-pg-config=/opt/metasploit/postgresql/bin/pg_config
  28. mkmf.rb can't find header files for ruby at /opt/metasploit/ruby/lib/ruby/include/ruby.h
  29.  
  30.  
  31. Gem files will remain installed in /opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/pg-0.13.2 for inspection.
  32. Results logged to /opt/metasploit/ruby/lib/ruby/gems/1.9.1/gems/pg-0.13.2/ext/gem_make.out
  33. msf > exit
Advertisement
Add Comment
Please, Sign In to add comment