sajattack / discourse-tui

Terminal UI for Discourse forums
MIT License
11 stars 2 forks source link

Unable to detect OpenSSL version #4

Open scoriess opened 3 years ago

scoriess commented 3 years ago

Description Cargo cannot finish compiling discourse-tui.

Specifications of the workstation Debian GNU/Linux bullseye/sid x86_64 Kernel: 5.10.0-3-amd64 Shell: zsh 5.8 DE: GNOME 3.38.3 CPU: Intel Core 2 P8600 (2) @ 2.401GHz

Steps to reproduce the behavior

mkdir -p ~/.config/discourse-tui
cp theme.toml ~/.config/discourse-tui
cargo build --release
[...]
Compiling openssl v0.9.24
error: failed to run custom build command for `openssl v0.9.24`

Caused by:
process didn't exit successfully: `/home/user001/bin/discourse-tui/target/release/build/openssl-6b7021e08fbabc21/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/user001/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24/build.rs:16:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
sajattack commented 3 years ago

Install openssl?

scoriess commented 3 years ago

After the first attempt to compile discourse-tui, I had already run apt show openssl to verify if openssl was installed. It seems it is:

Package: openssl
Version: 1.1.1i-3
Priority: optional
Section: utils
Maintainer: Debian OpenSSL Team <pkg-openssl-devel@lists.alioth.debian.org>
Installed-Size: 1’501 kB
Depends: libc6 (>= 2.15), libssl1.1 (>= 1.1.1)
Suggests: ca-certificates
Homepage: https://www.openssl.org/
Tag: implemented-in::c, interface::commandline, protocol::ssl, role::program,
 scope::utility, security::cryptography, security::integrity,
 use::checking
Download-Size: 849 kB
APT-Manual-Installed: yes
APT-Sources: https://deb.debian.org/debian bullseye/main amd64 Packages
Description: Secure Sockets Layer toolkit - cryptographic utility
 This package is part of the OpenSSL project's implementation of the SSL
 and TLS cryptographic protocols for secure communication over the
 Internet.
 .
 It contains the general-purpose command line binary /usr/bin/openssl,
 useful for cryptographic operations such as:
  * creating RSA, DH, and DSA key parameters;
  * creating X.509 certificates, CSRs, and CRLs;
  * calculating message digests;
  * encrypting and decrypting with ciphers;
  * testing SSL/TLS clients and servers;
  * handling S/MIME signed or encrypted mail.
sajattack commented 3 years ago

I think it's openssl-dev or something you need. My program is old and broken anyways, sorry to disappoint.