So, this post shares the problems I had in the installation and the solutions.
Oprofile version: 0.9.5 (remember to patch xenoprof before you go on)
Ubuntu 12.10 with Xen 4
First,
"./configure --with-kernel-support" because kernels > 2.6 include oprofile
During configuration, I got two problems.
1.
Problem:
"popt library not found"
Solution:
apt-get install libpopt-dev
2.
Problem:
"liberty library not found"
Solution:
apt-get install binutils-dev
Second,
"make"
I had one problem here,
3.
Problem:
compiler is not happy with the "mutable" modifier at libpp/format_output.h line:94
Solution/workaround:
"mutable"
Finally,
"make install"
I had no problem here! Yes.
But, is everything OK? Let's type "opcontrol"
We got another problem:
4.
Problem:
"/usr/local/bin/opcontrol: 567: Syntax error: Bad for loop variable"
"/usr/local/bin/opcontrol: 567: Syntax error: Bad for loop variable"
Solution:
The first line in "/usr/local/bin/opcontrol" was "#!/bin/sh". Now make it "#!/bin/bash"
That's it. Enjoy profiling!
Ending picture:
The Space Needle at Seattle, WA
No comments:
Post a Comment