How To Install libgnuplot-iostream-dev on Debian 9
Introduction
In this tutorial we learn how to install libgnuplot-iostream-dev
on Debian 9.
What is libgnuplot-iostream-dev
libgnuplot-iostream-dev is:
This interface allows gnuplot to be controlled from C++ and is designed to be the lowest hanging fruit. In other words, if you know how gnuplot works it should only take 30 seconds to learn this library. Basically it is just an iostream pipe to gnuplot with some extra functions for pushing data arrays and getting mouse clicks. Data sources include STL containers (eg. vector or map) and one or two dimensional Blitz++ arrays (of scalars or TinyVectors). Support for other data sources should be easy to add.
Basically there are two functions defined: send() sends arrays of data values (it is overloaded to do the right thing based upon what type of variable you pass) and getMouse() gets the position of a mouse click. Everything else is accomplished by sending commands manually to gnuplot via the iostream interface.
There are three methods to install libgnuplot-iostream-dev
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libgnuplot-iostream-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 libgnuplot-iostream-dev
using apt-get
by running the following command:
sudo apt-get -y install libgnuplot-iostream-dev
Install libgnuplot-iostream-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libgnuplot-iostream-dev
using apt
by running the following command:
sudo apt -y install libgnuplot-iostream-dev
Install libgnuplot-iostream-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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libgnuplot-iostream-dev
using aptitude
by running the following command:
sudo aptitude -y install libgnuplot-iostream-dev
How To Uninstall libgnuplot-iostream-dev on Debian 9
To uninstall only the libgnuplot-iostream-dev
package we can use the following command:
sudo apt-get remove libgnuplot-iostream-dev
Uninstall libgnuplot-iostream-dev And Its Dependencies
To uninstall libgnuplot-iostream-dev
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libgnuplot-iostream-dev
Remove libgnuplot-iostream-dev Configurations and Data
To remove libgnuplot-iostream-dev
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libgnuplot-iostream-dev
Remove libgnuplot-iostream-dev configuration, data, and all of its dependencies
We can use the following command to remove libgnuplot-iostream-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libgnuplot-iostream-dev
Dependencies
libgnuplot-iostream-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libgnuplot-iostream-dev
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.