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

error: failed to run custom build command for geos-sys v2.0.5 #131

Open
bouyeijiang opened this issue Apr 11, 2023 · 2 comments
Open

error: failed to run custom build command for geos-sys v2.0.5 #131

bouyeijiang opened this issue Apr 11, 2023 · 2 comments

Comments

@bouyeijiang
Copy link

error: failed to run custom build command for geos-sys v2.0.5

Caused by:
process didn't exit successfully: /home/bouyei/projects/georust/target/debug/build/geos-sys-70c700a92bad5d0b/build-script-build (exit status: 101)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:rerun-if-env-changed=GEOS_LIB_DIR
cargo:rerun-if-env-changed=GEOS_VERSION
cargo:rerun-if-env-changed=GEOS_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=GEOS_STATIC
cargo:rerun-if-env-changed=GEOS_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

--- stderr
thread 'main' panicked at 'Could not detect GEOS using pkg-config or geos-config', /home/bouyei/.cargo/registry/src/github.com/rust-lang-df7c3c540f42cdbd/geos-sys-2.0.5/build.rs:137:13

@brendan-ward
Copy link
Contributor

It looks like you are trying to dynamically link against GEOS and it isn't available or automatically discovered on your system. Some tips here.

You have 2 options:

  1. build one of the compatible versions GEOS on your system and make sure that it is discoverable either by having it install to a default location or adding environment variables to help discover it; it also needs to be discoverable at runtime (see above)
  2. build a static version of GEOS using the source code that is pinned here by adding --features static

If you've tried both of those and it still isn't working, please give us a little more information about how you have installed GEOS or if you are trying to run the static build.

@bouyeijiang
Copy link
Author

bouyeijiang commented Apr 11, 2023 via email

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

No branches or pull requests

2 participants