---
description: >-
  Everything you need to install and implement to develop on Solana on your Mac
  Device
---

# Solana Cookbook

#### Web3.js <a href="#web3-js" id="web3-js"></a>

[`@solana/web3.js`open in new window](https://solana-labs.github.io/solana-web3.js/) is a library that has a lot of the basic Solana tools to interact, send transactions, and read from the blockchain.

```
npm install --save @solana/web3.js
```

#### SPL-Token <a href="#spl-token" id="spl-token"></a>

`@solana/spl-token` is a library that contains many of the javascript/typescript bindings needed to interact with SPL tokens. You can use this library to mint new SPL tokens, transfer tokens, and more.

You can install this library with the following:

```
npm install --save @solana/spl-token
```

#### Wallet-Adapter <a href="#wallet-adapter" id="wallet-adapter"></a>

There is a collection of libraries that can help bootstrap wallet connections within Solana called wallet-adapter. Currently the package supports use within Svelte, Angular, Vue.js, and React. Wallet-adapter can quickstart your dApp integration with wallets like [Phantomopen in new window](https://phantom.app/), [Solflareopen in new window](https://solflare.com/), and more.

You can install this library with the following:

```
npm install --save @solana/wallet-adapter-wallets \
    @solana/wallet-adapter-base
```

### &#x20;Install Rust <a href="#install-rust" id="install-rust"></a>

* MACOS

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

### &#x20;Install Solana CLI on a MacOS <a href="#install-cli" id="install-cli"></a>



<figure><img src="https://3839086131-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwLQKoKm7lo1GZg7nNMrq%2Fuploads%2FqXjoQJc84wVO8sv1Mjkt%2FF4089D58-8C3E-4957-B9ED-77B1146753C7.jpeg?alt=media&#x26;token=a3733b6b-459e-4921-8196-9f32a02d9fa4" alt=""><figcaption></figcaption></figure>

First go to [https://github.com/solana-labs/solana/releases](https://github.com/solana-labs/solana/releases)

Open your favorite Terminal application.

Replace `LATEST_RELEASE` with your desired version and install the [latest Solana releaseopen in new window](https://github.com/solana-labs/solana/releases) on your machine by running:

```
sh -c "$(curl -sSfL https://release.solana.com/LATEST_RELEASE/install)"
```

You can replace `LATEST_RELEASE` with the release tag matching the software version of your desired release, or use one of the three symbolic channel names: `stable`, `beta`, or `edge`. To find the latest release, check versions available [hereopen in new window](https://github.com/solana-labs/solana/releases).

The following output indicates a successful update:

```
downloading LATEST_RELEASE installer
Configuration: /home/solana/.config/solana/install/config.yml
Active release directory: /home/solana/.local/share/solana/install/active_release
* Release version: LATEST_RELEASE
* Release URL: https://github.com/solana-labs/solana/releases/download/LATEST_RELEASE/solana-release-x86_64-unknown-linux-gnu.tar.bz2
Update successful
```

Depending on your system, the end of the installer messaging may prompt you to

```
Please update your PATH environment variable to include the solana programs:1
```

If you get the above message, copy and paste the recommended command below it to update `PATH`.

Confirm you have the desired version of `solana` installed by running:

```
solana --version

```

After a successful install, `solana-install update` may be used to easily update the Solana software to a newer version at any time.

**Downloading Binaries (macOS)**

Alternatively, you can install from binaries instead of using solana-install.

Download the binaries by navigating to [https://github.com/solana-labs/solana/releases/latestopen in new window](https://github.com/solana-labs/solana/releases/latest), download **solana-release-x86\_64-apple-darwin.tar.bz2**, then extract the archive:

```
tar jxf solana-release-x86_64-apple-darwin.tar.bz2
cd solana-release/
export PATH=$PWD/bin:$PATH
```

#### Windows <a href="#windows" id="windows"></a>

Open a Command Prompt (`cmd.exe`) as an Administrator.

Search for Command Prompt in the Windows search bar. When the Command Prompt app appears, right-click and select “Open as Administrator”. If you are prompted by a pop-up window asking “Do you want to allow this app to make changes to your device?”, click 'Yes'.

Copy and paste the following command, then press Enter to download the Solana installer into a temporary directory:

```
curl https://release.solana.com/v1.9.16/solana-install-init-x86_64-pc-windows-msvc.exe --output C:\solana-install-tmp\solana-install-init.exe --create-dirs
```

If `v1.9.16` is not your desired version, find the latest release [hereopen in new window](https://github.com/solana-labs/solana/releases).

Copy and paste the following command, then press Enter to install the latest version of Solana. If you see a security pop-up by your system, please select to allow the program to run.

```
C:\solana-install-tmp\solana-install-init.exe v1.9.16

```

To find the latest release, check versions available [hereopen in new window](https://github.com/solana-labs/solana/releases).

When the installer is finished, press Enter.

Close the command prompt window and re-open a new command prompt window as a normal user.

Search for "Command Prompt" in the search bar, then left-click on the Command Prompt app icon (no need to run as Administrator).

Confirm you have the desired version of `solana` installed by entering:

```
solana --version

```

After a successful install, `solana-install update` may be used to easily update the Solana software to a newer version at any time.

**Downloading Binaries**

Alternatively, you can install from binaries instead of using solana-install.

Download the binaries by navigating to [https://github.com/solana-labs/solana/releases/latestopen in new window](https://github.com/solana-labs/solana/releases/latest), download **solana-release-x86\_64-pc-windows-msvc.tar.bz2**, then extract the archive using WinZip or similar.

Open a Command Prompt and navigate to the directory into which you extracted the binaries and run:

```
cd solana-release/
set PATH=%cd%/bin;%PATH%
```

#### Build From Source <a href="#build-from-source" id="build-from-source"></a>

If you are unable to use the prebuilt binaries or prefer to build it yourself from source, navigate to [https://github.com/solana-labs/solana/releases/latestopen in new window](https://github.com/solana-labs/solana/releases/latest), and download the **Source Code** archive. Extract the code and build the binaries with:

```
./scripts/cargo-install-all.sh .
export PATH=$PWD/bin:$PATH

```

You can then run the following command to obtain the same result as with prebuilt binaries:

```
solana-install init
```
