docs/content/snippets/install-prereqs.mdx
Most modern MacOS systems have Homebrew and cURL preinstalled.
Download and install Homebrew:
<div className="pl-8"> ```sh $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` </div>Download and install CMake:
<div className="pl-8"> ```sh $ brew install cmake ``` Verify installation with ```sh $ cmake --version ``` </div>Download and install libpq:
<div className="pl-8"> ```sh $ brew install libpq ``` Verify installation with ```sh $ libpq --version ``` </div>Download and install PostgreSQL.
These prerequisites use the apt package manager for Linux. Adjust the commands accordingly per your package manager.
:::tip You can install all of the prerequisites for Linux at once using the following command:
<ImportContent source="linux-deps.mdx" mode="snippet" /> :::Download and install Rust:
<div className="pl-8"> ```sh $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ``` If you have Rust installed, update to the latest version: ```sh $ rustup update stable ``` </div>Download and install Cargo
<div className="pl-8"> ```sh $ curl https://sh.rustup.rs -sSf | sh ``` </div>Download and install cURL:
<div className="pl-8"> ```sh $ sudo apt-get install curl ``` Verify installation with ```sh $ curl --version ``` </div>Download and install Git CLI:
<div className="pl-8"> ```sh $ sudo apt-get install git-all ``` Verify installation with ```sh $ git --version ``` </div>Download and install CMake:
<div className="pl-8"> ```sh $ sudo apt-get install cmake ```Verify installation with
$ cmake --version
Download and install GCC:
<div className="pl-8"> ```sh $ sudo apt-get install gcc ``` Verify installation with ```sh $ gcc --version ``` </div>Download and install libssl-dev:
<div className="pl-8"> ```sh $ sudo apt-get install libssl-dev ``` If the version of Linux you use doesn't support **libssl-dev**, find an equivalent package for it on the [ROS Index](https://index.ros.org/d/libssl-dev/).If you have OpenSSL you might also need to also install pkg-config:
$ sudo apt-get install pkg-config
Download and install libclang-dev:
<div className="pl-8">$ sudo apt-get install libclang-dev
If the version of Linux you use doesn't support libclang-dev, find an equivalent package for it on the ROS Index.
</div> If you plan to use the --with-indexer and --with-graphql options with sui start, download and install libpq-dev:
$ sudo apt-get install libpq-dev
See Local Network for more information.
If the version of Linux you use doesn't support libpq-dev, find an equivalent package for it on the ROS Index.
</div>Download and install build-essential:
<div className="pl-8"> ```sh $ sudo apt-get install build-essential ``` </div>Windows 11 ships with a Microsoft version of cURL already installed; however, if you are using Windows 10 or want to use the cURL project version instead, download and install it from https://curl.se/windows/.
Download and install the Git command line interface.
Download and install CMake.
Download and install the LLVM Compiler Infrastructure. Look for a file with a name similar to LLVM-15.0.7-win64.exe for 64-bit Windows, or LLVM-15.0.7-win32.exe for 32-bit Windows.
Download and install C++ build tools before downloading Rust.
Download and install Rust.
<div className="pl-8"> If you use Windows 11, see information about using the [Rust installer](https://www.rust-lang.org/tools/install) on the Rust website. The installer checks for C++ build tools and prompts you to install them if necessary. Select the option that best defines your environment and follow the instructions in the install wizard.If you have Rust installed, update to the latest version:
$ rustup update stable
Download and install Cargo: Download and install rustup-init.exe
Download Protocol Buffers (protoc-xx.x-win32.zip or protoc-xx.x-win64.zip) and add the \bin directory to your Windows PATH environment variable.
For Windows on ARM64 only: Download and install Visual Studio 2022 Preview.