Closed jdimyadi closed 6 years ago
This issue talks about how to install pg_config on Windows: https://github.com/lpsmith/postgresql-simple/pull/66
Does this fix the installation problem?
No, that didn't help. The folder that contains pg_config.exe is in the system PATH, yet somehow the install procedure couldn't see it. But, I have managed to execute stack install right within the postgreSQL/9.5/bin/ folder.
Git clone the repo again and execute stack install and this time it did it without error.
Wow that is weird. Shall I add that to the install doc as a possibly necessary procedure?
Problem with postgresql connecting to the database
Is the database active? That is, Postgresql needs to be running to connect to.
Reinstalled Postgres 10.5 and all is good.
[1 of 2] Compiling Main ( C:\Users\user\AppData\Local\Temp\stack1960\postgresql-libpq-0.9.4.1\Setup.hs, C:\Users\user\AppData\Local\Temp\stack1960\postgresql-libpq-0.9.4.1.stack-work\dist\5c8418a7\setup\Main.o ) [2 of 2] Compiling StackSetupShim ( C:\sr\setup-exe-src\setup-shim-Z6RU0evB.hs, C:\Users\user\AppData\Local\Temp\stack1960\postgresql-libpq-0.9.4.1.stack-work\dist\5c8418a7\setup\StackSetupShim.o ) Linking C:\Users\user\AppData\Local\Temp\stack1960\postgresql-libpq-0.9.4.1.stack-work\dist\5c8418a7\setup\setup.exe ... Configuring postgresql-libpq-0.9.4.1... setup.exe: The program 'pg_config' is required but it could not be found.