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 building the binaries after adding reqwest #76

Closed
Angelmmiguel opened this issue Jan 26, 2023 · 0 comments · Fixed by #77
Closed

Error building the binaries after adding reqwest #76

Angelmmiguel opened this issue Jan 26, 2023 · 0 comments · Fixed by #77
Assignees
Labels
🐛 bug Something isn't working
Milestone

Comments

@Angelmmiguel
Copy link
Contributor

Angelmmiguel commented Jan 26, 2023

The GitHub Action automation is failing to build the binary due to missing dependencies. After adding reqwest on #74, the project now requires an OpenSSL installation. This is required by the openssl-sys crate, required by reqwest.

Here you can see the error: https://github.com/vmware-labs/wasm-workers-server/actions/runs/4014946928/jobs/6896087632

run pkg_config fail: "pkg-config has not been configured to support cross-compilation.\n\nInstall a sysroot for the target platform and configure it via\nPKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_PATH, or install a\ncross-compiling wrapper for pkg-config and set it via\nPKG_CONFIG environment variable."

  --- stderr
  thread 'main' panicked at '

  Could not find directory of OpenSSL installation, and this `-sys` crate cannot
  proceed without this knowledge. If OpenSSL is installed and this crate had
  trouble finding it,  you can set the `OPENSSL_DIR` environment variable for the
  compilation process.

  Make sure you also have the development packages of openssl installed.
  For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora.

  If you're in a situation where you think the directory *should* be found
  automatically, please open a bug at https://github.com/sfackler/rust-openssl
  and include information about your system as well as this message.

In their documentation, they provide certain commands to install the required dependencies. I will reuse this information and test the build process works properly.

@Angelmmiguel Angelmmiguel added the 🐛 bug Something isn't working label Jan 26, 2023
@Angelmmiguel Angelmmiguel added this to the v1.0.0 milestone Jan 26, 2023
@Angelmmiguel Angelmmiguel self-assigned this Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant