stackprof-gprof2dot.py command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
stackprof-gprof2dot.py: command not found
or when using sudo you get the following error message
sudo: stackprof-gprof2dot.py: command not found
Solutions to stackprof-gprof2dot.py: command not found
How To Fix stackprof-gprof2dot.py: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu stackprof-gprof2dot.py is provided by ruby-stackprof package.
ruby-stackprof is:
stackprof is a fast sampling profiler for ruby code, with cpu, wallclock and object allocation samplers.
Inspired heavily by gperftools, and written as a replacement for perftools.rb.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ruby-stackprof
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ruby-stackprof.
sudo apt -y install ruby-stackprof
Or if you have aptitude installed you can use the following command.
sudo aptitude install ruby-stackprof
Summary
In this tutorial we learn how to fix stackprof-gprof2dot.py command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.