KEMBAR78
Environment Setup Guide | PDF | Software | System Software
0% found this document useful (0 votes)
7 views5 pages

Environment Setup Guide

Uploaded by

binayakb1604
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views5 pages

Environment Setup Guide

Uploaded by

binayakb1604
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

🚀Prerequisites :-

1. Have your own laptop .


2. Familiar with the command prompt and command
execution.
3. Curiosity of learning and development on new
technologies.

🟠 Below are the steps and video links that would help
you to setup your environment for development.

📌 For Linux :-

Step 1:- Download and install Node.js and Install the libunwind package.
On Debian/Ubuntu: sudo apt install libunwind-dev.

Step 2 :- Install the IC SDK.

On terminal :-

sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"

Confirm the IC SDK has been installed (you may need to open a new
terminal window):

On terminal :-

dfx --version

📌 For macOS :-

✅Open a terminal window.


✅Download and install Node.js. Using HomeBrew is recommended.
✅ Apple silicon machines: Download and install Rosetta: softwareupdate --
install-rosetta

On terminal :-
sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"

To customize your IC SDK installation, you can use the interactive


installation prompt or set environment variables for a terminal session.
Confirm the IC SDK has been installed (you may need to open a new
terminal window):

On terminal :-

dfx --version

📌 For Windows :-

📌NOTE:- dfx is not natively supported on Windows. You will need to


install a Linux instance via Windows Subsystem for Linux and run all
commands within that Linux instance.
Please refer the video for the setup :- https://youtu.be/eId6K8d0v6o?
si=PFNXI_EKShGCO6k1

Step 1 :-

Open PowerShell as Administrator (Start menu > PowerShell > right-click >
Run as Administrator) and enter this command:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-


Linux /all /norestart

Step 2:-

Before installing WSL 2, you must enable the Virtual Machine Platform optional
feature. Your machine will require virtualization capabilities to use this feature.

Open PowerShell as Administrator and run:

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all


/norestart

Step 3:-
Download the Linux kernel update package
wsl.exe --install

Step 4 :-

Set WSL 2 as your default version

wsl --set-default-version 2

Step 5 :-

Install Ubuntu Distro App :-

wsl --install -d Ubuntu

NOTE :- If you are facing issues or errors while installing Ubuntu from the
command prompt or windows powershell , just go to Microsoft Store and
search for Ubuntu 24 LTS version and download it from there.

Step 6 :-

Search Ubntu in your search bar and open the Ubuntu App.

Now Ubuntu will ask to set up username and Password


(Don’t forget Password and password characters are not Visible).
Now run the command sudo apt update to update ubuntu.

Step 7 :- Install Curl


Run command sudo apt install curl to install curl in ubuntu.
Step 8:-
Install NVM Commands:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh |
bash
Step 9 :-
Copy paste the command :- export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" #
This loads nvm bash_completion
Step 10 :-
Check nvm version by running this command : nvm --version
Step 11 :-
source ~/.bashrc
Step 12:-
nvm install node

Step 13 :-

For Windows Subsystem for Linux (WSL) :-

On terminal :-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

✅ Ensure whether the packages are installed :-


On terminal :-

rustc --version

cargo --version

Step 14 :-
Install DFX (ICP SDK)
On terminal :-

sh -ci "$(curl -fsSL https://internetcomputer.org/install.sh)"

To customize your IC SDK installation, you can use the interactive


installation prompt or set environment variables for a terminal session.

Confirm the IC SDK has been installed (you may need to open a new
terminal window):

On terminal :-

dfx --version
📌 Install VS Code for WSL Environment :-
On terminal :-
code .

📌 NOTE :-
Before moving forward with the deployment or creating a new dfx
project please ensure the installation of the following packages :-

1. Node.js :- node --version


2. Dfx SDK :- dfx --version
3. Rust :- rustc --version
4. Cargo :- cargo --version
5. Npm :- npm -v

You might also like