Skip to content

Instantly share code, notes, and snippets.

@shivaylamba
Created November 27, 2022 00:10
Show Gist options
  • Save shivaylamba/08219cf0d4d0370cf820a3c0ee5dc065 to your computer and use it in GitHub Desktop.
Save shivaylamba/08219cf0d4d0370cf820a3c0ee5dc065 to your computer and use it in GitHub Desktop.
Install and Build WASMEdge with Ubuntu

Get the Source Code

git clone https://github.com/WasmEdge/WasmEdge.git cd WasmEdge

Install Dependencies on Ubuntu 20.04 Manually

For the developers who don't want to use docker, they can setup the environment on Ubuntu Manually.

Please check that these dependencies are satisfied.

LLVM 12.0.0 (>= 10.0.0) GCC 11.1.0 (>= 9.4.0)

`` sudo apt install -y
software-properties-common
cmake
libboost-all-dev

And you will need to install llvm for the AOT runtime

sudo apt install -y
llvm-12-dev
liblld-12-dev

WasmEdge supports both clang++ and g++ compilers.

You can choose one of them to build this project.

If you prefer GCC, then:

sudo apt install -y gcc g++

Or if you prefer clang, then:

sudo apt install -y clang-12 ``

Building:

``

If you don't use docker then you need to run only the following commands in the cloned repository root

mkdir -p build && cd build cmake -DCMAKE_BUILD_TYPE=Release -DWASMEDGE_BUILD_TESTS=ON .. && make -j ``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment