How To Install nekovm on CentOS 7

In this tutorial we learn how to install nekovm on CentOS 7. nekovm is Neko embedded scripting language and virtual machine

Introduction

In this tutorial we learn how to install nekovm on CentOS 7.

What is nekovm

Neko is a high-level dynamically typed programming language which can also be used as an embedded scripting language. It has been designed to provide a common run-time for several different languages. Neko is not only very easy to learn and use, but also has the flexibility of being able to extend the language with C libraries. You can even write generators from your own language to Neko and then use the Neko run-time to compile, run, and access existing libraries. If you need to add a scripting language to your application, Neko provides one of the best trade-offs available between simplicity, extensibility and speed. Neko allows the language designer to focus on design whilst reusing a fast and well constructed run-time, as well as existing libraries for accessing file system, network, databases, XML… Neko has a compiler and virtual machine. The Virtual Machine is both very lightweight and extremely well optimized so that it can run very quickly. The VM can be easily embedded into any application and your libraries are directly accessible using the C foreign function interface. The compiler converts a source .neko file into a byte-code .n file that can be executed with the Virtual Machine. Although the compiler is written in Neko itself, it is still very fast. You can use the compiler as standalone command-line executable separated from the VM, or as a Neko library to perform compile-and-run for interactive languages.

We can use yum or dnf to install nekovm on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install nekovm.

Install nekovm on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install nekovm using yum by running the following command:

sudo yum -y install nekovm

Install nekovm on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install nekovm using dnf by running the following command:

sudo dnf -y install nekovm

How To Uninstall nekovm on CentOS 7

To uninstall only the nekovm package we can use the following command:

sudo dnf remove nekovm

References

Summary

In this tutorial we learn how to install nekovm on CentOS 7 using yum and dnf.