Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on OSX 10.12.6 with cpan: Could not expand [DBD-pg] #32

Closed
scottcc opened this issue Oct 10, 2018 · 5 comments
Closed

Can't install on OSX 10.12.6 with cpan: Could not expand [DBD-pg] #32

scottcc opened this issue Oct 10, 2018 · 5 comments
Labels

Comments

@scottcc
Copy link

scottcc commented Oct 10, 2018

Can't install on OSX 10.12.6 with cpan: Could not expand [DBD-pg]

Expected Behavior

Follow the "Install it" instructions, expect the can DBD-pg command to work

Current Behavior

Install homebrew (works just fine). Then, try to use cpan:

> cpan DBD-pg
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/Users/foobar/.cpan/Metadata'
  Database was generated on Wed, 10 Oct 2018 15:17:03 GMT
>(error): Could not expand [DBD-pg]. Check the module name.
>(info): I can suggest names if you install one of Text::Levenshtein::XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Levenshtein::Damerau::PP
>(info): and you provide the -x option on invocation.
>(error): Skipping DBD-pg because I couldn't find a matching namespace.

Your Environment

  • Version used: perl 5.28, cpan version 1.64 calling Getopt::Std::getopts (version 1.12 [paranoid])
  • PostgreSQL version: 9.6.2
  • Operating System and version: 10.12.6
@scottcc
Copy link
Author

scottcc commented Oct 10, 2018

For what it's worth, I found this command to work a moment after filing the issue:

perl -MCPAN -e 'install Bundle::DBD::Pg'

@jfcoz jfcoz added the OSX label Jan 10, 2019
@initialkommit
Copy link

initialkommit commented Mar 22, 2019

cpan -i DBD::Pg
It works as well.
Ref: https://www.tagestad.no/old/2011/05/installing-postgresql-and-dbdpg-on-osx.html

@scottcc
Copy link
Author

scottcc commented Apr 30, 2019

Incidentally, the above suggestion does NOT work (this is on a Mojave system/PostgreSQL 11.2:

> cpan -i DBD::pg
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/Users/scc/.cpan/Metadata'
  Database was generated on Tue, 30 Apr 2019 18:58:18 GMT
>(error): Could not expand [DBD::pg]. Check the module name.
>(info): I can suggest names if you install one of Text::Levenshtein::XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Levenshtein::Damerau::PP
>(info): and you provide the -x option on invocation.
>(error): Skipping DBD::pg because I couldn't find a matching namespace.

@halfdan
Copy link

halfdan commented Oct 19, 2020

Incidentally, the above suggestion does NOT work (this is on a Mojave system/PostgreSQL 11.2:

> cpan -i DBD::pg
Loading internal logger. Log::Log4perl recommended for better logging
Reading '/Users/scc/.cpan/Metadata'
  Database was generated on Tue, 30 Apr 2019 18:58:18 GMT
>(error): Could not expand [DBD::pg]. Check the module name.
>(info): I can suggest names if you install one of Text::Levenshtein::XS, Text::Levenshtein::Damerau::XS, Text::Levenshtein, and Text::Levenshtein::Damerau::PP
>(info): and you provide the -x option on invocation.
>(error): Skipping DBD::pg because I couldn't find a matching namespace.

It's case sensitive - cpan -i DBD::Pg works just fine (uppercase P)

@scottcc
Copy link
Author

scottcc commented Oct 27, 2020

D'oh! Thanks @halfdan and @initialkommit - pebkac.

@scottcc scottcc closed this as completed Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants