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

Document how to deal with openssl and other often-missing external dependencies #132

Closed
strct opened this issue Oct 27, 2020 · 3 comments
Closed
Labels
enhancement New feature or request

Comments

@strct
Copy link

strct commented Oct 27, 2020

On debian cargo install cargo-c fails with the error:

  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.

  $HOST = x86_64-unknown-linux-gnu
  $TARGET = x86_64-unknown-linux-gnu
  openssl-sys = 0.9.58


  It looks like you're compiling on Linux and also targeting Linux. Currently this
  requires the `pkg-config` utility to find OpenSSL but unfortunately `pkg-config`
  could not be found. If you have OpenSSL installed you can likely fix this by
  installing `pkg-config`.

While the error message is quite descriptive and helps to install the required packages, it might be nice to include the install instructions in the README.md.
Required packages are described here: sfackler/rust-openssl#855 (comment)

@strct strct changed the title cargo install erros with "Could not find directory of OpenSSL installation" cargo install errors with "Could not find directory of OpenSSL installation" Oct 27, 2020
@lu-zero lu-zero changed the title cargo install errors with "Could not find directory of OpenSSL installation" Document how to deal with openssl and other often-missing external dependencies Nov 5, 2020
@lu-zero lu-zero added the enhancement New feature or request label Nov 5, 2020
@lu-zero
Copy link
Owner

lu-zero commented Nov 5, 2020

It is a good idea, if you could come up with a patch for the readme I'd land it.

@lu-zero
Copy link
Owner

lu-zero commented Nov 21, 2020

I updated the README to give some more information, let me know if you think it is enough.

@strct
Copy link
Author

strct commented Nov 21, 2020

Thank you for writing it. Looks good to me.

@strct strct closed this as completed Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants