Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Windows install #1

Open
DutchGhost opened this issue Feb 18, 2020 · 0 comments
Open

Windows install #1

DutchGhost opened this issue Feb 18, 2020 · 0 comments

Comments

@DutchGhost
Copy link
Contributor

DutchGhost commented Feb 18, 2020

It should be noted, that in order to get postgress working on Windows, you should take the following steps:

  1. Goto https://www.enterprisedb.com/downloads/postgres-postgresql-downloads
  2. Download the Windows x86-64 12.2 version
  3. Execute the installer, following its steps
  4. edit C:\User\<username>\.cargo\config
  5. Add the following:
[target.x86_64-pc-windows-msvc.pq]
rustc-link-search = ["C:\\Program Files\\PostgreSQL\\12\\lib"]
rustc-link-lib = ["libpq"]

This will make rustc search for libpq in the correct directory, and will fix the linker error you otherwise would get.

@WesleyKlop WesleyKlop pinned this issue Feb 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant