Skip to content

Install the Runtime Package

Erik McClure edited this page Jan 18, 2021 · 4 revisions

The inNative runtime package contains a stripped down build of the inNative WebAssembly Runtime, the bare minimum required to run webassembly modules. The portable runtime package contains both the dynamic version (which can be installed) and the static version (which can be embedded). The installer only contains the dynamic version, and is intended for end-users to install. You are free to package the runtime installers with your program, but it's recommended you simply embed it unless there is limited space.

Windows

Download the dynamic installer of the runtime and install it with the options you prefer. By default, it will itself to the registry and associate itself with .wat, .wast, and .wasm files. You can install it wherever you want, so long as you don't move it, as the stub will dynamically locate the runtime from the registry.

To uninstall, simply uninstall it from "add/remove programs", or run innative-cmd.exe -u from the SDK bin directory.

There is also a portable runtime package, which includes both dynamic and static libraries for developers to embed in their programs. Debug symbols are included with the debug binary.

Linux

No prebuilt version of inNative is available for Linux due to glibc portability issues. To install a version you built from source, run ./innative-cmd -i from the bin directory. This will copy the binaries into /usr/bin/ and /usr/lib/ using symlink versioning. You will then be able to call innative-cmd from the command line, which will automatically use the latest version of the runtime installed on your machine. Because this is a copy operation, you no longer need the original files and are free to move or delete them.

To uninstall, simply run ./innative-cmd -u from the bin directory, or from the command line. Running it from the command line will uninstall the latest version - if there was only one version of the runtime, it will remove all symlinks from the system entirely.