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

openssl not installed #214

Closed
meua opened this issue Mar 15, 2023 · 2 comments · Fixed by #216
Closed

openssl not installed #214

meua opened this issue Mar 15, 2023 · 2 comments · Fixed by #216

Comments

@meua
Copy link
Contributor

meua commented Mar 15, 2023

Describe the bug

Steps to reproduce the behavior:
  run pkg_config fail: "`\"pkg-config\" \"--libs\" \"--cflags\" \"openssl\"` did not exit successfully: exit status: 1\nerror: could not find system library 'openssl' required by the 'openssl-sys' crate\n\n--- stderr\nPackage openssl was not found in the pkg-config search path.\nPerhaps you should add the directory containing `openssl.pc'\nto the PKG_CONFIG_PATH environment variable\nNo package 'openssl' found\n"

  --- 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.

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

  ', /home/navy/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-sys-0.9.76/build/find_normal.rs:191:5
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace```

**Expected behavior**
Install openssl automatically

**Screenshots or Video**
![image](https://user-images.githubusercontent.com/11570442/225255470-fb179d3f-918f-4eae-8161-fa9af9bb977c.png)

**Environments (please complete the following information):**
 - System info: Linux jia 5.15.0-67-generic #74~20.04.1-Ubuntu SMP Wed Feb 22 14:52:34 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
 - Dora version:dora-cli 0.2.0
 
**Additional context**
https://dora.carsmos.ai/dora/installation.html
This is triggered during the execution of the command `cargo build --all --release` abnormal
@phil-opp
Copy link
Collaborator

Thanks for reporting this! I opened #216 to switch to rusttls instead of openSSL, which should fix this issue. Until then, you can try running apt install libssl-dev. Alternatively, you can use our pre-built binaries at https://github.com/dora-rs/dora/releases/tag/v0.2.0.

@meua
Copy link
Contributor Author

meua commented Mar 16, 2023

OK, thanks!

@meua meua closed this as completed Mar 16, 2023
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

Successfully merging a pull request may close this issue.

2 participants