Just went into the same issue, and as @mikio-tsunematsu pointed out as a comment, the solution is to install libcppunit
and libcppunit-dev
(or cppunit
and cppunit-devel
). As you say you can't install them using package manager, then your only solution is to get the sources and compile them in your directory.
You usually can download sources of packages of your distribution and compile them using it, which may help work with the installed tools on your system.
as it worked for me, HTH