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

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

Open
slimehunter84 opened this issue Jan 9, 2022 · 8 comments
Open

Comments

@slimehunter84
Copy link

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)

@Lochki02
Copy link

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
Copy link
Author

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
Copy link

Lochki02 commented Jan 14, 2022

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

can you explain how you did that?

@Stitches101
Copy link

same problem here, any logic answer yet?

@Anurag5086
Copy link

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

@0xBeycan
Copy link

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
Copy link

SkyYap commented Jul 28, 2022

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
Copy link

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

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

8 participants
@slimehunter84 @SkyYap @Stitches101 @itayLev1 @0xBeycan @Anurag5086 @Lochki02 and others