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

build error: program not found #34

Closed
ppputtyo opened this issue Dec 15, 2023 · 2 comments · Fixed by #39
Closed

build error: program not found #34

ppputtyo opened this issue Dec 15, 2023 · 2 comments · Fixed by #39

Comments

@ppputtyo
Copy link

Hello. I tried to run the following source code on Windows 10 and the build failed. I am seeking assistance in resolving this issue.

Code

use pg_query;

fn main() {
    let result = pg_query::parse("SELECT * FROM contacts");
    assert!(result.is_ok());
}

Error message

The project is located at E:\pg-query-test.

error: failed to run custom build command for `pg_query v0.8.2`

Caused by:
  process didn't exit successfully: `E:\pg-query-test\target\debug\build\pg_query-4000e504282b2f84\build-script-build` (exit code: 1)
  --- stdout
  cargo:rerun-if-changed=.\libpg_query\Makefile
  cargo:rustc-link-search=native=E:\pg-query-test\target\debug\build\pg_query-b2e470b4f0427967\out
  cargo:rustc-link-lib=static=pg_query

  --- stderr
  Error: Error { kind: NotFound, message: "program not found" }

Environment

OS: Windows 10
pg_query: 0.8.2
cargo: 1.75.0-nightly
cmake: 3.28.1

@lfittl
Copy link
Member

lfittl commented Dec 22, 2023

This is probably a known issue: libpg_query currently does not support Windows: pganalyze/libpg_query#44

@lfittl lfittl mentioned this issue Jan 7, 2024
@lfittl lfittl closed this as completed in #39 Jan 9, 2024
@lfittl
Copy link
Member

lfittl commented Jan 10, 2024

Windows support has been added in #39 and released as 5.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants