solana-labs / example-helloworld

Hello world on Solana
MIT License
903 stars 870 forks source link

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

Open slimehunter84 opened 2 years ago

slimehunter84 commented 2 years ago

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:

helloworld@0.0.1 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)

Lochki02 commented 2 years ago

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

slimehunter84 commented 2 years ago

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.

Lochki02 commented 2 years ago

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

can you explain how you did that?

Stitches101 commented 2 years ago

same problem here, any logic answer yet?

Anurag5086 commented 2 years ago

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

BeycanDeveloper commented 2 years ago

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.

SkyYap commented 2 years ago

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

itayLev1 commented 1 year ago

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