Skip to content

Instantly share code, notes, and snippets.

@mingliangguo
Last active August 29, 2024 13:13
Show Gist options
  • Save mingliangguo/635345dcd6b603da337d4c71792bd330 to your computer and use it in GitHub Desktop.
Save mingliangguo/635345dcd6b603da337d4c71792bd330 to your computer and use it in GitHub Desktop.
install websocat in ubuntu
# libssl-dev and pkg-config are required in order to build websocat
#
apt-get update && apt-get install -y curl build-essential libssl-dev pkg-config
curl https://sh.rustup.rs -sSf | sh
export PATH=$HOME/.cargo/bin:$PATH
cargo install --features=ssl websocat
@pausanchezv
Copy link

And how do you run it? After installing websocat is not recognised by ubuntu? Do you know why?

@zmeyc
Copy link

zmeyc commented Aug 18, 2020

@pausanchezv Probably because the binary is in $HOME/.cargo/bin and PATH has not been set. Add PATH to ~/.bashrc etc.

@CanBusHack
Copy link

Problem: "Could not find directory of OpenSSL installation"
Solution:
apt install libssl-dev

@Suzerainless
Copy link

thanks

@Abassina
Copy link

dont work. i get this error while running cargo install:
error: linker cc not found
|
= note: No such file or directory (os error 2)

error: could not compile libc (build script) due to 1 previous error
error: failed to compile websocat v1.13.0, intermediate artifacts can be found at /tmp/cargo-install6UKn7l.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment