# Build systap from source

In case the kernel and systemtap doesn't match, you need to download the source code and build from source.

## Download Source

To build systemtap, we need to download systemtap and elfutils.

```
git clone git://sourceware.org/git/elfutils.git

git clone git://sourceware.org/git/systemtap.git
```

## Configure

```
$cd elfutils
$autoreconf -i


$cd ../systemtap
$./configure --with-elfutils=../elfutils
```

## Build & Install

```
$make
$sudo make install
```

If succeed, you would see stap under systemtap directory.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://richardweiyang-2.gitbook.io/systemtap_with_examples/installation/installation_build_systap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
