Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.18 KB

UBUNTU.md

File metadata and controls

47 lines (32 loc) · 1.18 KB

Install Dextool on Ubuntu

(Optional) Step 1: Update and install the latest packages:

sudo apt-get update
sudo apt-get upgrade

(Optional) Step 2: Check which llvm, clang and libclang version to use.

Dextool has been tested with libclang 4.0, 5.0, 6.0, 7.0, 8.0, 10.0, 11.0 and 12.0

Run the following to check which versions are available:

apt search llvm-
apt search clang-
apt search libclang-

You should see for example libclang-12-dev.

Step 3: Install the dependencies:

sudo apt install build-essential cmake llvm-12 llvm-12-dev clang-12 libclang-12-dev libsqlite3-dev

Step 4: Install the D compiler:

Download and install the latest LDC compiler from the official distribution page.

Example (2021-01-07):

wget https://github.com/ldc-developers/ldc/releases/download/v1.24.0/ldc2-1.24.0-linux-x86_64.tar.xz
mkdir -p ~/dlang
tar -xf ldc2-1.24.0-linux-x86_64.tar.xz -C ~/dlang

Add it to your $PATH:

export PATH=~/dlang/ldc2-1.24.0-linux-x86_64/bin:$PATH

You are now ready to build dextool. Go to the section Build and Install in README.md