- changed status to resolved
First I installed libmsr in /home/user/libmsr .
and configured in papi-5.7.0/src/components/libmsr with the command like
./configure --with-libmsr-incdir=/home/user/libmsr/include --with-libmsr-libdir=/home/user/libmsr/lib
But it reports that error msr/msr_rapl.h not found: use configure flags to set the path
I mkdir in/home/user/libmsr/msr and copy the header files from /home/user/libmsr/include to /home/user/libmsr/msr
then
./configure --with-libmsr-incdir=/home/user/libmsr --with-libmsr-libdir=/home/user/libmsr/lib
the error of mrs_rapl.h disappeared.
But it reports error: libmsr component: libmsr.so not found: use configure flags to set the path.
The libmsr.so is just in /home/user/libmsr/lib.
https://bitbucket.org/icl/papi/src/master/src/components/libmsr/README.md