example-helloworld icon indicating copy to clipboard operation
example-helloworld copied to clipboard

Failed to install bpf-tools on Windows 10 during rust build step

Open slimehunter84 opened this issue 3 years ago • 8 comments

I'm running through the example now on Windows 10 and when I get to the build step (https://github.com/solana-labs/example-helloworld#build-the-on-chain-program), when building the rust version (>npm run build:program-rust) I get a failure error after a while:

[email protected] build:program-rust cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml --bpf-out-dir=dist/program

BPF SDK: \?\C:\Users\mant.local\share\solana\install\releases\1.9.4\solana-release\bin\sdk\bpf Failed to install bpf-tools: HTTP status client error (404 Not Found) for url (https://github.com/solana-labs/bpf-tools/releases/download/v1.21/solana-bpf-tools-windows.tar.bz2)

slimehunter84 avatar Jan 09 '22 01:01 slimehunter84

i have the same problem, it seems the error in the url is the "download" but i don't know how to fix it

Lochki02 avatar Jan 13 '22 19:01 Lochki02

i have the same problem, it seems the error in the url is the "download" but i don't know how to fix it

I had moderate success when I tried building solana-bpf-tools-windows from source.

slimehunter84 avatar Jan 14 '22 02:01 slimehunter84

I had moderate success when I tried building solana-bpf-tools-windows from source.

can you explain how you did that?

Lochki02 avatar Jan 14 '22 08:01 Lochki02

same problem here, any logic answer yet?

Stitches101 avatar Jan 15 '22 23:01 Stitches101

I'm facing the same issue, did anyone get the fix?

Anurag5086 avatar Jan 31 '22 10:01 Anurag5086

I am having this problem. I'll be glad if anyone can help me out. I tried a lot, but I still can't come to a conclusion.

BeycanDeveloper avatar Mar 24 '22 00:03 BeycanDeveloper

I am facing the same issue. Does anyone know the reason?

toshkazima avatar Jul 15 '22 19:07 toshkazima

I have bpf-tools installing issue when trying to use anchor build on Window 11. I solved it via installing WSL. https://ubuntu.com/tutorials/install-ubuntu-on-wsl2-on-windows-11-with-gui-support#1-overview

After installing, you can follow this tutorial to setup the Solana environment. https://medium.com/@sncryldrm/setup-solana-development-environment-on-windows-cbed9e42ccef

SkyYap avatar Jul 28 '22 07:07 SkyYap

Try see if this one works, Mainly solving issues when shared folder is unreachable so are some Json files that the command is looking for when building

run these in Linux CLI: 1) download file from the link: wget https://packages.ubuntu.com/focal/amd64/libssl1.1/download 2) then install it using: sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.18_amd64.deb

itayLev1 avatar May 23 '23 09:05 itayLev1