headers icon indicating copy to clipboard operation
headers copied to clipboard

can not install in the WSL from China

Open WuJingweiPayton opened this issue 1 year ago • 3 comments

wujingwei@LAPTOP-JHVV030O:~/foundry-f24/foundry-smart-contract-lottery-f24$ curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path --default-toolchain none
--default-host x86_64-unknown-linux-gnu
--default-host i686-pc-windows-gnu
--default-host x86_64-apple-darwin
--rustup-dist-server https://mirrors.tuna.tsinghua.edu.cn/rustup
--rustup-update-root https://mirrors.tuna.tsinghua.edu.cn/rustup/rustup info: downloading installer

there is no download speed

WuJingweiPayton avatar Nov 07 '24 13:11 WuJingweiPayton

works fine in my WSL . The only thing is that it doesn't get copied in the clipboard that the problem.

image

the text don't get copied in my clipboard

Aashim-Limbu avatar Nov 30 '24 09:11 Aashim-Limbu

the install fails on wsl error: could not compile `headers` (bin "headers") due to 1 previous error error: failed to compile `headers v0.1.0 (/path)`, intermediate artifacts can be found at `/path/headers/target`.

abrahamakoja avatar Feb 27 '25 17:02 abrahamakoja

the install fails on wsl error: could not compile `headers` (bin "headers") due to 1 previous error error: failed to compile `headers v0.1.0 (/path)`, intermediate artifacts can be found at `/path/headers/target`.

Hi, I ran into a similar issue with my WSL using Ubuntu. I had to install some missing required XCB dependencies. This is what I did:

sudo apt-get update
sudo apt-get install libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev

Then I ran:

cargo install --path .

Works fine for me now and may be the problem you are having.

SupaMega24 avatar Mar 12 '25 13:03 SupaMega24

@SupaMega24 Thanks , your approach fixed the issue for me.

abrahamakoja avatar Mar 19 '25 23:03 abrahamakoja