[Bug 228722] security/metasploit "No database driver installed. Try 'gem install pg'"

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jun 3 10:41:52 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228722

            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 at FreeBSD.org
          Reporter: mbeis at xs4all.nl
                CC: tanawts at gmail.com
             Flags: maintainer-feedback?(tanawts at gmail.com)
                CC: tanawts at 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 `setup'
        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_make.out
[...]

The databases/rubygem-pg port is installed.

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


More information about the freebsd-ports-bugs mailing list