Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure in readme install instructions #64

Closed
sullyj3 opened this issue Sep 25, 2020 · 8 comments
Closed

Failure in readme install instructions #64

sullyj3 opened this issue Sep 25, 2020 · 8 comments

Comments

@sullyj3
Copy link

sullyj3 commented Sep 25, 2020

~> curl -LSfs https://raw.githubusercontent.com/byron/dua-cli/master/ci/install.sh | \                                                                   1s 757ms
                               sh -s -- --git byron/dua-cli --crate dua
install.sh: GitHub repository: https://github.com/byron/dua-cli
install.sh: Crate: dua
install.sh: Tag: latest (v2.10.2)
install.sh: Target: x86_64-unknown-linux-gnu
install.sh: Installing to: /home/james/.cargo/bin
install.sh: Downloading: https://github.com/byron/dua-cli/releases/download/v2.10.2/dua-v2.10.2-x86_64-unknown-linux-gnu.tar.gz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
@sullyj3
Copy link
Author

sullyj3 commented Sep 25, 2020

Looks like the url for the archive is out of date.
Instead of
https://github.com/byron/dua-cli/releases/download/v2.10.2/dua-v2.10.2-x86_64-unknown-linux-gnu.tar.gz
should possibly be
https://github.com/Byron/dua-cli/releases/download/v2.10.2/dua-v2.10.2-x86_64-unknown-linux-musl.tar.gz

(gnu vs musl)

Byron added a commit that referenced this issue Sep 28, 2020
@Byron
Copy link
Owner

Byron commented Sep 28, 2020

Thanks for the hint.

I have updated the readme to present different instructions for linux, essentially forcing to use the musl build like this:

curl -LSfs https://raw.githubusercontent.com/byron/dua-cli/master/ci/install.sh | \
    sh -s -- --git byron/dua-cli --target x86_64-unknown-linux-musl --crate dua

Could you check if this works for you? Thank you

@sullyj3
Copy link
Author

sullyj3 commented Sep 29, 2020

Yup! Seems good!

@sullyj3 sullyj3 closed this as completed Sep 29, 2020
@sarmong
Copy link

sarmong commented May 12, 2022

I am still getting the same error
image

@Byron
Copy link
Owner

Byron commented May 12, 2022

The readme instructions changed, try this:

curl -LSfs https://raw.githubusercontent.com/byron/dua-cli/master/ci/install.sh | \
    sh -s -- --git byron/dua-cli --crate dua --tag v2.17.2

@sarmong
Copy link

sarmong commented May 13, 2022

Same error.

This worked

curl -LSfs https://raw.githubusercontent.com/byron/dua-cli/master/ci/install.sh | \
    sh -s -- --git byron/dua-cli --target x86_64-unknown-linux-musl --crate dua --tag v2.17.2

@Byron
Copy link
Owner

Byron commented May 13, 2022

The above is the installation instructions for linux, what I was providing was the ones for non-linux (even though I don't know if this would work for windows either). That would explain why it seems to be unusually difficult to get this right.

@sarmong
Copy link

sarmong commented May 14, 2022

Oh, I was using Ubuntu 20.04 for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants