# Step 9: Install Anchor on Windows and WSL

Anchor is a framework for Solana smart contract development. It simplifies the process of writing, testing, and deploying programs on SVM blockchains. To ensure compatibility and flexibility in your development environment, it's recommended to install Anchor both on your Windows system and within WSL. This section covers the installation process for both environments.

**Install Anchor in Windows Terminal**

1. **Open Windows Terminal as Administrator**:
   * This is necessary to ensure that the installation process has the required permissions.
2. **Install Anchor CLI**:
   * Run the following command in the terminal:

     ```bash
     cargo install --git https://github.com/project-serum/anchor anchor-cli --locked
     ```
   * This command downloads and installs the latest version of Anchor CLI from the official GitHub repository.<br>

     <figure><img src="https://lh7-us.googleusercontent.com/BQn236M-Z9efjwwQjW0MJTgpGtpvJ1W94QYCi22gdeP7DGfwEIGmukF0fN1DXS7RYfmy-I8d2MqJni2mTxdxFwf2alV583TyyW5LFQQlouPU4pqMMsA_2uv-SsRLg9qVUsRAqYtPb0_Dm9nU5um2zms" alt=""><figcaption><p>Example Output</p></figcaption></figure>
3. **Verify Installation**:
   * To check that Anchor was installed correctly, type:

     ```bash
     anchor --version
     ```
   * The terminal should display the version of Anchor CLI installed.

**Install Anchor in WSL**

To install Anchor within your WSL environment, follow these steps:

1. **Open WSL Terminal**:
   * Launch your WSL terminal from the Start menu or through VS Code's Remote - WSL extension.
2. **Install Anchor CLI**:
   * Execute the same Cargo command within your WSL terminal:

     ```bash
     cargo install --git https://github.com/project-serum/anchor anchor-cli --locked
     ```
   * This ensures that Anchor CLI is available in your Linux environment, offering consistency across your development platforms.
3. **Verify Installation**:
   * Confirm the installation by checking the Anchor version in WSL:

     ```bash
     anchor --version
     ```
   * The version number indicates that Anchor CLI is ready for use within WSL.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.eclipse.xyz/developers/tutorials-and-guides/developer-guides/dapp-deployment-tutorial-eclipse-devnet/install-dependencies-windows/step-9-install-anchor-on-windows-and-wsl.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
