Linux Requirements
Unless the "fips" feature is enabled, building aws-lc-rs v1.7.0 (or later) for the following targets should only require a C/C++ compiler.
Platform | default | fips | bindgen required? |
---|---|---|---|
aarch64-unknown-linux-gnu | C/C++ Compiler | C/C++ Compiler, CMake & Go | No |
aarch64-unknown-linux-musl | C/C++ Compiler | C/C++ Compiler, CMake & Go | No |
x86_64-unknown-linux-gnu | C/C++ Compiler | C/C++ Compiler, CMake & Go | No |
x86_64-unknown-linux-musl | C/C++ Compiler | C/C++ Compiler, CMake & Go | No |
i686-unknown-linux-gnu | C/C++ Compiler | Not Supported | No |
Other | C/C++ Compiler & CMake | Not Supported | Yes |
C/C++ Compiler
Amazon Linux (AL2023)
sudo dnf groupinstall -y "Development Tools"
Ubuntu (22.04 LTS)
sudo apt-get install -y build-essential
CMake & Go
Amazon Linux (AL2023)
sudo dnf install -y cmake golang
Ubuntu (22.04 LTS)
sudo apt-get install -y cmake golang
Bindgen
On most platforms, bindgen
requires libclang
or llvm
package to be installed.
See the requirements page in
The bindgen User Guide for instructions.
libclang / LLVM
Amazon Linux (AL2023)
sudo dnf install -y clang-libs
Ubuntu (22.04 LTS)
sudo apt-get install -y libclang1
bindgen-cli
cargo install --force --locked bindgen-cli
Troubleshooting
See our troubleshooting section.