Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.04 KB

building-from-source.md

File metadata and controls

34 lines (25 loc) · 1.04 KB

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.

  1. Install the Rust compiler and Cargo using rustup.rs. If you already have the toolchain, ensure you are using version 1.64 or higher.

  2. Install dependencies for your operating system:

Ubuntu

sudo apt install cmake pkg-config libfontconfig-dev libgtk-3-dev g++

Fedora

sudo dnf install gcc-c++ perl-FindBin perl-File-Compare gtk3-devel
  1. Clone this repository (this command will clone to your home directory):
git clone https://github.com/lapce/lapce.git ~/lapce
  1. cd into the repository, and run the build command with the release flag
cd ~/lapce
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.