How To Install libmuparserx-dev on Ubuntu 18.04

In this tutorial we learn how to install libmuparserx-dev on Ubuntu 18.04. libmuparserx-dev is mathematical expression parser library (development files)

Introduction

In this tutorial we learn how to install libmuparserx-dev on Ubuntu 18.04.

What is libmuparserx-dev

libmuparserx-dev is:

The evaluation of a mathematical expression is a standard task required in many applications. It can be solved by either using a standard math expression parser such as muparser or by embedding a scripting language such as Lua. There are however some limitations: Although muparser is pretty fast it will only work with scalar values and although Lua is very flexible it does neither support binary operators for arrays nor complex numbers. So if you need a math expression parser with support for arrays, matrices and strings muparserx may be able to help you. It was originally based on the original muparser engine but has since evolved into a standalone project with a completely new parsing engine.

This package contains the development files for libmuparserx.

There are three methods to install libmuparserx-dev on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libmuparserx-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libmuparserx-dev using apt-get by running the following command:

sudo apt-get -y install libmuparserx-dev

Install libmuparserx-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libmuparserx-dev using apt by running the following command:

sudo apt -y install libmuparserx-dev

Install libmuparserx-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libmuparserx-dev using aptitude by running the following command:

sudo aptitude -y install libmuparserx-dev

How To Uninstall libmuparserx-dev on Ubuntu 18.04

To uninstall only the libmuparserx-dev package we can use the following command:

sudo apt-get remove libmuparserx-dev

Uninstall libmuparserx-dev And Its Dependencies

To uninstall libmuparserx-dev and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libmuparserx-dev

Remove libmuparserx-dev Configurations and Data

To remove libmuparserx-dev configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libmuparserx-dev

Remove libmuparserx-dev configuration, data, and all of its dependencies

We can use the following command to remove libmuparserx-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libmuparserx-dev

References

Summary

In this tutorial we learn how to install libmuparserx-dev package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.