Install mpykdump on local machine

Here is the sequence of commands to build mpykdump on your system. This is based on crash version 8.0.0. You may want to check what version of crash your system has to match it. Below is the sequence on RHEL8. You can ignore the error from ‘crash’ compile as we are not going to use the binary, but just need the configuration.

subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
yum install git gcc-c++ gcc make zlib-devel zip bison ncurses-devel texinfo -y

wget gdb  -y
mkdir mycrash
cd mycrash
git clone git://git.code.sf.net/p/pykdump/code pykdump -b dev

wget https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tar.xz
tar xvf Python-3.9.9.tar.xz
cd Python-3.9.9/
./configure CFLAGS='-fPIC'
cp -f /root/mycrash/pykdump/Extension/Setup.local-3.9 Modules/Setup.local
make

cd ~/mycrash/
git clone https://github.com/crash-utility/crash.git
cd crash
git checkout 8.0.0
make

cd ~/mycrash/pykdump/Extension/
./configure -c ~/mycrash/crash -p ~/mycrash/Python-3.9.9
make
make install
echo "extend /root/.crash.d/mpykdump.so" > ~/.crashrc

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: