error: Cannot find cairo.h

Introduction When installing cairo package for R the following error might be thrown: configure: error: Cannot find cairo.h! Please install cairo ( and/or set CAIRO_CFLAGS/LIBS correspondingly. The error is generated because cairo.h header file is missing. Follow the steps below to solve this issue on Ubuntu. Solution Installing libcairo2-dev package will solve the problem, because

fatal error: libpq-fe.h: No such file or directory

Introduction You might encounter the following error while trying to install some packages in RStudio IDE: fatal error: libpq-fe.h: No such file or directory I encountered that error while trying to install RPostgreSQL package and that resulted in the error below: ERROR: compilation failed for package ‘RPostgreSQL’ As it can be seen from the error

How to save and quit in Vi/Vim Editor.

Introduction Vi is an advanced and very powerful text editor that works in CLI only mode. Vim is a modified and newer version of Vi and is absolutely backwards compatible with it. You might hear both these names these days: Vi or Vim, so don’t be confused and know that they are referring to the

How to install .deb file in Ubuntu

Introduction Ubuntu and other Debian derivatives (for example, Linux Mint) use installable software packages with .deb file extension. Usually, you download deb package from the vendor and then install the software from that file without having to compile it. This is different from the case when you download the source code and compile that source

Install Anaconda on Linux Mint.

Introduction In this article I will go through the installation process of Anaconda onto Linux Mint. Step 1. Download Anaconda Go to and download the installation file as shown below. After the downloading completes you will see the installation shell script: Step 2. Run the installation script Now open the terminal (CTRL+ALT+T) navigate to

How to create a DataFrame object in Pandas

Introduction In this article I’m going to show how to create a Pandas DataFrame object in two different ways. Create a DataFrame from a dictionary Each key of the dictionary defines the name of the column and the value (list object) for that key defines the column values. The code above will create a DataFrame

WC command examples in Linux

Introduction WC (word count) is the Linux command which allows you to count the number of bytes(or characters), words and lines in a provided text file. It might not seem very useful, but there are actually a lot of situations where you might need to get the number of words or lines in a file

How to change hostname in Linux Mint?

Introduction The hostname is the name of your computer. It is generally used to identify your PC on the network and it’s also usually part of the command prompt in Linux terminal. The hostname is assigned to the computer during the operating system installation, but you can change it later, if you want. In this

Ping and ping-options in Fortigate.

Introduction In this article we will see how to run “ping” command from Fortigate CLI. We will also see how to use ping-options command to specify various parameters for the ping. I will be using FortiOS 6.2.3 for the demo, but the commands apply to other versions too. Fortigate VM If you don’t have a