-
Notifications
You must be signed in to change notification settings - Fork 36
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 cygwin #128
Comments
What is $^O on Cygwin? Try editing Makefile.PL and comment out this line: Line 53 in 455943e
and the matching close brace on line 57. |
$^O on cygwin is "cygwin". I take it that I have to git clone from here to do what you suggest. I seem to get some other issues building that, I'll have to find some time to play with it. |
@xpusostomos wrote:
No, you can just edit the Makefile.PL file in the CPAN distribution. It looks like you're using the "cpan" command to install? If so, then at the "cpan" prompt, type "look DBD::Pg" and then it will give you a shell in cpan's DBD::Pg installation directory. Then just edit the Makefile.PL file as I previously suggested and "perl Makefile.PL" and "make" and "make test". |
Hmm... make test does this:
I guess it's trying to create a database to test... I'm not sure why it asks me to run a database server, I have one running all the time... or what its requirements or assumptions are to create a database and connect to it.. ... anyway, I did a make install, which seemed to work... and back in cpan I did install DBD::Pg and it said
So that sounds good, however... when I try and run a perl pg program...
so cpan seems to think it's installed, but perl seems to think it isn't. |
Without seeing the output of your "make install", which you haven't provided, it's impossible to diagnose what your problem is. So do "make install" again and pay closer attention to where it's being installed? |
I get an error installing DBD::Pg on cygwin...
Since postgres is installed in C:/Program Files, a path with a space in it, and the error says "gcc warning Files/PostgreSQL/15/include"... it looks like a classic case of shell variable not quoted, or something like that. BTW, C:/Program Files is the default install location for Postgres on Windows. I would imagine perhaps the error occurs on UNIX too if you happened to have it installed in a path with a space.
The text was updated successfully, but these errors were encountered: