vi / websocat

Command-line client for WebSockets, like netcat (or curl) for ws:// with advanced socat-like functions
MIT License
7.18k stars 278 forks source link

Running Arch, and something involving openssl failing? Here's the fix #19

Open i336 opened 6 years ago

i336 commented 6 years ago

Are you seeing this?

(lots of success)
.
.
.
error: failed to run custom build command for `openssl v0.9.24`
process didn't exit successfully: `/tmp/cargo-installeT1Fjp/release/build/openssl-52aea9a6aa0ce1e0/build-script-build` (exit code: 101)
--- stderr
thread 'main' panicked at 'Unable to detect OpenSSL version', /home/i336/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.9.24/build.rs:16:14
note: Run with `RUST_BACKTRACE=1` for a backtrace.

warning: build failed, waiting for other jobs to finish...
error: failed to compile `websocat v1.1.0`, intermediate artifacts can be found at `/tmp/cargo-installeT1Fjp`

Caused by:
  build failed

Do this, then rerun the cargo command:

export OPENSSL_LIB_DIR="/usr/lib/openssl-1.0"; export OPENSSL_INCLUDE_DIR="/usr/include/openssl-1.0"

"Why?!?"

https://github.com/sfackler/rust-openssl/issues/994

Just saving someone a Google

vi commented 6 years ago

"Why?!?"

websocat (and rust-websocket) currently depends on outdated-ish dependencies, so it's no surprice.

Note that even without normal SSL support you can do SSL in websocat in a hacky way with ws-c: adapter.

Just saving someone a Google

Do I need to do something here?

vi commented 6 years ago

Shall some section about OpenSSL problems be included in README?