Sunday, January 2, 2022

Using WSL for Solana development

Why? Solana tooling for Windows does not allow for BPF builds.

How?

  • Run WSL on Windows
  • If you are behind a company firewall:
    • make sure you have a .pem file of your root certificate. Talk your sysadmin for that. If you have a .cer file - make sure you convert it to .pem
    • Make sure you have an environment variable SSL_CERT_FILE to point at your .pem certificate (use "export SSL_CERT_FILE=" for that from inside your wsl command shell) or event better - add it to your ~/bashrc file
  • sudo apt install build-essential
  • curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  • sudo apt install pkg-config
  • sudo apt install libudev-dev
  • sudo apt install llvm-dev
  • sudo apt install clang

No comments:

Post a Comment