Last active
August 29, 2024 13:13
-
-
Save mingliangguo/635345dcd6b603da337d4c71792bd330 to your computer and use it in GitHub Desktop.
install websocat in ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 Probably because the binary is in $HOME/.cargo/bin and PATH has not been set. Add PATH to ~/.bashrc etc.
Problem: "Could not find directory of OpenSSL installation"
Solution:
apt install libssl-dev
thanks
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
And how do you run it? After installing websocat is not recognised by ubuntu? Do you know why?