I have not done this for perhaps a decade or more. But apparently, things are still the same on Ubuntu 18.04: sudo apt-get install build-essential cpan make install install Bundle::CPAN install App::GnuplotUtils
sudo apt-get install build-essential cpan make install install Bundle::CPAN install App::GnuplotUtils
View the discussion thread.