From d29fecb5fd6ef81c450884132b889cfe6c3397f0 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Wed, 2 Mar 2022 21:49:36 +0000 Subject: Add Ubuntu 21.04 install instructions Installing on Ubuntu requires editing the Makefile a little, and also installing LLVM10 which is non-trivial. --- INSTALL.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 INSTALL.md (limited to 'INSTALL.md') diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000..83fd1f7 --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,22 @@ +This project is built using LLVM 10. + +The Makefile tries to call llvm-config, but this is ambiguous and may not work +in some situations (since there are more versions of LLVM than just v10). The +version 10-specific llvm-config binary is often called llvm-config-10; adjust +the Makefile if this is the case for your distribution. + +# Building on Ubuntu 21.04 + +See https://apt.llvm.org/ for information. Briefly: + +```bash +wget --no-check-certificate -O - https://apt.llvm.org/llvm-snapshot.gpg.key \ + | sudo apt-key add - +sudo add-apt-repository 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main' +sudo apt update +audo apt install llvm-10-dev +``` + +The last command may fail when looking for libFFI 6, in which case you will have +to install this dependency manually from Ubuntu 19.04's pacakges (available +[here](http://mirrors.kernel.org/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb)). -- cgit v1.2.1