How To Install libmuparserx4.0.7 on Ubuntu 18.04

In this tutorial we learn how to install libmuparserx4.0.7 on Ubuntu 18.04. libmuparserx4.0.7 is mathematical expression parser library

Introduction

In this tutorial we learn how to install libmuparserx4.0.7 on Ubuntu 18.04.

What is libmuparserx4.0.7

libmuparserx4.0.7 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 shared library.

There are three methods to install libmuparserx4.0.7 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 libmuparserx4.0.7 Using apt-get

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

sudo apt-get update

After updating apt database, We can install libmuparserx4.0.7 using apt-get by running the following command:

sudo apt-get -y install libmuparserx4.0.7

Install libmuparserx4.0.7 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libmuparserx4.0.7 using apt by running the following command:

sudo apt -y install libmuparserx4.0.7

Install libmuparserx4.0.7 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 libmuparserx4.0.7 using aptitude by running the following command:

sudo aptitude -y install libmuparserx4.0.7

How To Uninstall libmuparserx4.0.7 on Ubuntu 18.04

To uninstall only the libmuparserx4.0.7 package we can use the following command:

sudo apt-get remove libmuparserx4.0.7

Uninstall libmuparserx4.0.7 And Its Dependencies

To uninstall libmuparserx4.0.7 and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libmuparserx4.0.7

Remove libmuparserx4.0.7 Configurations and Data

To remove libmuparserx4.0.7 configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libmuparserx4.0.7

Remove libmuparserx4.0.7 configuration, data, and all of its dependencies

We can use the following command to remove libmuparserx4.0.7 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libmuparserx4.0.7

References

Summary

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