cd /usr/local/src
find -type d -maxdepth 1 -name "ksymoops-*" -exec rm -r {} \;
tar xjvf ~/ksymoops-2.4.11.tar.bz2
cd ksymoops-2.4.11
chown -R root.root .
# If make fails with an error like this:
# /usr/local/src/binutils-2.14/bfd/merge.c:652: undefined reference to
# `htab_create_alloc'
# that's because your /usr/include/libiberty.h and /usr/lib/libiberty.a
# come from gcc, but they should come from binutils. To fix that, run this:
# mkdir -p -m 0700 ~/backup/libiberty
# mv -f /usr/include/libiberty.h /usr/lib/libiberty.a ~/backup/libiberty/
# cp /usr/local/src/binutils-*/include/libiberty.h /usr/include/
# cp /usr/local/src/binutils-*/libiberty/libiberty.a /usr/lib/
# and then cd back into /usr/local/src/ksymoops-2.4.11 and re-run make.
make
make install
cd
mkdir -p -m 0700 installed
rm -f installed/ksymoops-*.tar.*
mv ksymoops-2.4.11.tar.bz2 installed/