-
-
Notifications
You must be signed in to change notification settings - Fork 760
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
OpenSsl installed but it can't find its directory #951
Comments
You need to have pkg-config installed. |
Nope thats not it |
Just checked |
--- stderr Could not find directory of OpenSSL installation, and this Make sure you also have the development packages of openssl installed. If you're in a situation where you think the directory should be found
', /root/.cargo/git/checkouts/rust-openssl-41da9d20ce19f5aa/91a78bc/openssl-sys/build/main.rs:269:9 warning: build failed, waiting for other jobs to finish... |
|
I'm getting the same errors, and I have the development packages of openssl installed, and pkg-config installed. Attempting to build for armhf from Ubuntu 19.04. |
installing libssl-dev worked for me on Ubuntu |
Turns out you need both libssl-dev and pkg-config, so the full solution (for Ubuntu) is:
|
I realize this thread is Linux, but I'm going to leave my future self a note. The dependencies for Mac are:
|
I installed
Doing this through github actions |
Tried setting config path
But still getting same error |
I've even verified |
Looks like it's to do with this issue: cross-rs/cross#404 |
- Without previous installation of `openssl-dev`, `pkg-config`, `cargo install cargo-generate` will fail. - Potential solution is to install the respective dependencies beforehand Tested On: Windows10 Pro + WSL2 (Ubuntu-20.04 LTS) + rustc > v1.51 Possible Solution found on: sfackler/rust-openssl#951 Signed-off-by: Shan Desai <shantanoo.desai@gmail.com>
* docs: add info about openssl, pkg-config deps - Without previous installation of `openssl-dev`, `pkg-config`, `cargo install cargo-generate` will fail. - Potential solution is to install the respective dependencies beforehand Tested On: Windows10 Pro + WSL2 (Ubuntu-20.04 LTS) + rustc > v1.51 Possible Solution found on: sfackler/rust-openssl#951 Signed-off-by: Shan Desai <shantanoo.desai@gmail.com> * docs: point to `cargo-generate` installation section - Reason: `cargo install cargo-generate` provides `--features` flag to enable SSL binding which can add dependencies and remove the `openssl-dev` and `pkg-config` standalone installations. - Approach: Give user the choice to either install these deps accordingly by pointing to the Installtion Instruction for `cargo-generate` Signed-off-by: Shan Desai <shantanoo.desai@gmail.com> * docs: refactor docs for clarity Signed-off-by: Shan Desai <shantanoo.desai@gmail.com> * refactor(docs): remove redundant sentence
* docs: add info about openssl, pkg-config deps - Without previous installation of `openssl-dev`, `pkg-config`, `cargo install cargo-generate` will fail. - Potential solution is to install the respective dependencies beforehand Tested On: Windows10 Pro + WSL2 (Ubuntu-20.04 LTS) + rustc > v1.51 Possible Solution found on: sfackler/rust-openssl#951 Signed-off-by: Shan Desai <shantanoo.desai@gmail.com> * docs: point to `cargo-generate` installation section - Reason: `cargo install cargo-generate` provides `--features` flag to enable SSL binding which can add dependencies and remove the `openssl-dev` and `pkg-config` standalone installations. - Approach: Give user the choice to either install these deps accordingly by pointing to the Installtion Instruction for `cargo-generate` Signed-off-by: Shan Desai <shantanoo.desai@gmail.com> * docs: refactor docs for clarity Signed-off-by: Shan Desai <shantanoo.desai@gmail.com> * refactor(docs): remove redundant sentence
Thank you! |
Arch linux:
And:
The text was updated successfully, but these errors were encountered: