Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Jun 2018 10:41:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 228722] security/metasploit "No database driver installed. Try 'gem install pg'"
Message-ID:  <bug-228722-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228722

            Bug ID: 228722
           Summary: security/metasploit "No database driver installed. Try
                    'gem install pg'"
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: mbeis@xs4all.nl
                CC: tanawts@gmail.com
             Flags: maintainer-feedback?(tanawts@gmail.com)
                CC: tanawts@gmail.com

I try to use security/metasploit on FreeBSD. It installs fine and I can run
msfconsole, but metasploit cannot connect to the postgresql database:

[...]
[4mmsf[0m [0m> db_status
[-] No database driver installed. Try 'gem install pg'
[...]

The suggested gem install pg doesn't work either:

[...]
[4mmsf[0m [0m> gem install pg
[*] exec: gem install pg

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

    current directory: /usr/local/lib/ruby/gems/2.4/gems/pg-1.0.0/ext
/usr/local/bin/ruby24 -r ./siteconf20180602-31634-1qgflo4.rb extconf.rb
/usr/local/lib/ruby/gems/2.4/gems/bundler-1.16.2/lib/bundler/spec_set.rb:91=
:in
`block in materialize': Could not find pg-1.0.0 in any of the sources
(Bundler::GemNotFound)
        from
/usr/local/lib/ruby/gems/2.4/gems/bundler-1.16.2/lib/bundler/spec_set.rb:85=
:in
`map!'
        from
/usr/local/lib/ruby/gems/2.4/gems/bundler-1.16.2/lib/bundler/spec_set.rb:85=
:in
`materialize'
        from
/usr/local/lib/ruby/gems/2.4/gems/bundler-1.16.2/lib/bundler/definition.rb:=
171:in
`specs'
        from
/usr/local/lib/ruby/gems/2.4/gems/bundler-1.16.2/lib/bundler/definition.rb:=
238:in
`specs_for'
        from
/usr/local/lib/ruby/gems/2.4/gems/bundler-1.16.2/lib/bundler/definition.rb:=
227:in
`requested_specs'
        from
/usr/local/lib/ruby/gems/2.4/gems/bundler-1.16.2/lib/bundler/runtime.rb:108=
:in
`block in definition_method'
        from
/usr/local/lib/ruby/gems/2.4/gems/bundler-1.16.2/lib/bundler/runtime.rb:20:=
in
`setup'
        from
/usr/local/lib/ruby/gems/2.4/gems/bundler-1.16.2/lib/bundler.rb:107:in `set=
up'
        from
/usr/local/lib/ruby/gems/2.4/gems/bundler-1.16.2/lib/bundler/setup.rb:20:in
`<top (required)>'
        from
/usr/local/lib/ruby/site_ruby/2.4/rubygems/core_ext/kernel_require.rb:59:in
`require'
        from
/usr/local/lib/ruby/site_ruby/2.4/rubygems/core_ext/kernel_require.rb:59:in
`require'

extconf failed, exit code 1

Gem files will remain installed in /usr/local/lib/ruby/gems/2.4/gems/pg-1.0=
.0
for inspection.
Results logged to
/usr/local/lib/ruby/gems/2.4/extensions/amd64-freebsd-11/2.4/pg-1.0.0/gem_m=
ake.out
[...]

The databases/rubygem-pg port is installed.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228722-7788>