9

I installed valgrind on Centos using this command:

yum install valgrind kcachegrind graphviz

I then used the callgrind tool for my c++ program. It generated its callgrind.out.42424 file.

Now, I want to open this file on KCacheGrind using this command:

   kcachegrind ./callgrind.out.42424

but terminal says

bash kcachegrind : command not found

I don't know why I am getting this error whereas I installed it. Do I need to be in specific directory to run this command?

Xara
  • 8,748
  • 16
  • 52
  • 82

1 Answers1

9
sudo yum install kdesdk valgrind graphviz
josliber
  • 43,891
  • 12
  • 98
  • 133
Sree
  • 337
  • 4
  • 10
  • You may need to enable repos if this doesn't work. The kdesdk lives in the rhel-7-server-optional-rpms repo which is disabled in the default RHEL install. To enable the repo run sudo subscription-manager repos --enable=rhel-7-server-optional-rpms – Ian Chadwick Mar 01 '18 at 07:34