2022-10-12 18:07:11 +00:00
## Building from source
It is easy to build Lapce from source on a GNU/Linux distribution. Cargo handles the build process, all you need to do, is ensure the correct dependencies are installed.
2022-10-22 13:13:02 +00:00
1. Install the Rust compiler and Cargo using [`rustup.rs` ](https://rustup.rs/ ). If you already have the toolchain, ensure you are using version 1.64 or higher.
2022-10-12 18:07:11 +00:00
2. Install dependencies for your operating system:
#### Ubuntu
```sh
2023-08-29 22:18:33 +00:00
sudo apt install clang libxkbcommon-x11-dev pkg-config libvulkan-dev libwayland-dev xorg-dev libxcb-shape0-dev libxcb-xfixes0-dev
2022-10-12 18:07:11 +00:00
```
#### Fedora
```sh
2023-09-04 19:58:40 +00:00
sudo dnf install clang libxkbcommon-x11-devel libxcb-devel vulkan-loader-devel wayland-devel perl-File-Compare perl-FindBin
2022-10-12 18:07:11 +00:00
```
2023-07-10 06:25:08 +00:00
#### Void Linux
```sh
2023-08-19 19:53:41 +00:00
sudo xbps-install -S base-devel clang libxkbcommon-devel vulkan-loader wayland-devel
2023-07-10 06:25:08 +00:00
```
2022-10-12 18:07:11 +00:00
3. Clone this repository (this command will clone to your home directory):
```sh
git clone https://github.com/lapce/lapce.git ~/lapce
```
4. `cd` into the repository, and run the build command with the release flag
```sh
cd ~/lapce
```
```sh
cargo build --release
```
> If you use a different distribution, and are having trouble finding appropriate dependencies, let us know in an issue!
Once Lapce is compiled, the executable will be available in `target/release/lapce` .