Installing memusage on Ubuntu
For some annoying reason, Ubuntu does not package
memusage in their libc.
- Download a version of glibc that’s old enough to match your version of Ubuntu.
- Compile and install into a destination that’s not
/usr/local, I used
PREFIX=~/glibc. Weird compiler errors probably means you need to try an older version.
$PREFIX/bin/libmemusageyou might have to change the
memusageso=...line to where
$PREFIX/lib/libmemusage.so) for the script to run successfully.
Speaking from experience: keep this thing far, far away from
/usr/local or else you might brick your machine when you
ldconfig and your
entire system links into this glibc.
Maybe the real solution is to use Debian :-).back up
Email me questions or comments at !