Skip to content

Instantly share code, notes, and snippets.

@mingliangguo
Last active July 22, 2024 04:10
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

@Biotahero
Copy link

thanks

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