There are several options for installing drgn.
drgn depends on:
It optionally depends on:
- libkdumpfile for makedumpfile compressed kernel core dump format support
The build requires:
Running tests requires:
- check 0.10.0 or newer
Building from the Git repository (rather than a release tarball) additionally requires:
The above options all install drgn globally. You can also install drgn in a virtual environment, either with pip:
$ python3 -m venv drgnenv
$ source drgnenv/bin/activate
(drgnenv) $ pip3 install drgn
(drgnenv) $ drgn --help
Or from source:
$ python3 -m venv drgnenv
$ source drgnenv/bin/activate
(drgnenv) $ python3 setup.py install
(drgnenv) $ drgn --help
If you build drgn from source, you can also run it without installing it:
$ python3 setup.py build_ext -i
$ python3 -m drgn --help