Skip to content

[dependencies] nginx = { git = "https://github.com/arvancloud/nginx-rs.git", tag = "0.15.0" } #5096

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

Closed
pranaw215 opened this issue Aug 18, 2022 · 1 comment
Labels
C-bug 🐞 Category: unintended, undesired behavior

Comments

@pranaw215
Copy link

pranaw215 commented Aug 18, 2022

Current Behavior

While downloading the crates for nginx-rs binding after setting the dependency in Cargo.toml the below line.

[dependencies]
nginx = { git = "https://github.com/arvancloud/nginx-rs.git", tag = "0.15.0" }

The following error is encountered.

error: failed to run custom build command for `nginx v0.15.0 (https://github.com/arvancloud/nginx-rs.git?tag=0.15.0#2b72469c)`

Caused by:
  process didn't exit successfully: `/home/new-ubuntu/rust_weserver/warp-upload-download-example/target/debug/build/nginx-55cdb34e9e60c60d/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=NGINX_VERSION
  cargo:rerun-if-env-changed=NGINX_PATH

  --- stderr
  thread 'main' panicked at 'unable to prepare nginx: "preparing nginx exited with non-zero status code"', /home/new-ubuntu/.cargo/git/checkouts/nginx-rs-3ad6d7e8a6feb35c/2b72469/build.rs:52:6

The env variable of the NGINX_VERSION is nginx/1.18.0 and for NGINX_PATH is /etc/nginx.
Please help me out for to fix this.

Expected Behavior

Nginx has to build and run through nginx-rust bindings.

Steps To Reproduce

  1. Create cargo toml with below dependency
    [dependencies]
    nginx = { git = "https://github.com/arvancloud/nginx-rs.git", tag = "0.15.0" }

  2. Set the env variable "NGINX_PATH" and "NGINX_VERSION" to /etc/nginx and nginx/1.18.0 respective.

  3. Give cargo run

Environment

  • OS: Ubuntu

uname -a

Linux newubuntu-VirtualBox 5.11.0-49-generic #55-Ubuntu SMP Wed Jan 12 17:36:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Anything else?

No response

@pranaw215 pranaw215 added the C-bug 🐞 Category: unintended, undesired behavior label Aug 18, 2022
@Turbo87
Copy link
Member

Turbo87 commented Aug 18, 2022

you might want to report this to the nginx-rs maintainers at https://github.com/arvancloud/nginx-rs instead :)

@Turbo87 Turbo87 closed this as completed Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug 🐞 Category: unintended, undesired behavior
Projects
None yet
Development

No branches or pull requests

2 participants